]> granicus.if.org Git - transmission/commit
Sanitize suspicious path components instead of rejecting them
authorMike Gelfand <mikedld@mikedld.com>
Sun, 23 Jun 2019 13:23:22 +0000 (16:23 +0300)
committerMike Gelfand <mikedld@mikedld.com>
Sun, 23 Jun 2019 15:08:31 +0000 (18:08 +0300)
commit99033b067da01c646a3e12a13f8bbcd43a9dd056
treef418f39e9b0498c3d0de2f05c5396fcc73a01cc2
parent139f3a3f4b8bef5858739a8f08bd2ad9911f55c7
Sanitize suspicious path components instead of rejecting them

Apply the same rules on all the supported platforms to avoid issues
with network shares and alien file systems.

For future compatibility, explicitly mark adjusted paths as renamed.

Fixes: #294
libtransmission/metainfo-test.c
libtransmission/metainfo.c
libtransmission/metainfo.h