(trunk, libT) #5517 'fix error adding torrents whose names with an ellipsis' -- fix by e5g6s.

This commit is contained in:
Jordan Lee
2014-01-19 04:19:14 +00:00
parent f470ab3210
commit fa23e1e60a
+2 -1
View File
@@ -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