mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
(trunk, libT) #5517 'fix error adding torrents whose names with an ellipsis' -- fix by e5g6s.
This commit is contained in:
@@ -63,7 +63,8 @@ static bool
|
||||
path_is_suspicious (const char * path)
|
||||
{
|
||||
return (path == NULL)
|
||||
|| (strstr (path, "../") != NULL);
|
||||
|| (!strncmp (path, "../", 3))
|
||||
|| (strstr (path, "/../") != NULL);
|
||||
}
|
||||
|
||||
static bool
|
||||
|
||||
Reference in New Issue
Block a user