Changeset 14231


Ignore:
Timestamp:
Jan 19, 2014, 4:19:14 AM (7 years ago)
Author:
jordan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/metainfo.c

    r14225 r14231  
    6464{
    6565  return (path == NULL)
    66       || (strstr (path, "../") != NULL);
     66      || (!strncmp (path, "../", 3))
     67      || (strstr (path, "/../") != NULL);
    6768}
    6869
Note: See TracChangeset for help on using the changeset viewer.