Fixes #5517 Error adding torrent with "../" in file path