Ticket #9 (new defect)

Opened 4 years ago

Last modified 4 years ago

Cannot submit torrents with an apostrophe in the URL

Reported by: nhjm449 Owned by: Edward_K
Priority: minor Milestone:
Component: Tokyo Tosho Version:
Keywords: Cc: nhjm449@…, kaga@…

Description

Users are unable to submit torrents when there are apostrophes in the torrent URL. The server is attempting to download the torrent URL, but the apostrophes are escaped, causing it to request the wrong URL.

ie.
User enters: http://example.com/i'm_a_torrent.torrent
TT server queries example.com for: http://example.com/i\\'m_a_torrent.torrent

Of course, there is no "i
'm_a_torrent.torrent" on the remote server, causing an error to be returned to the user.

Torrent submission works fine if %27 is substituted for the apostrophe.

[I didn't test double quotes or other possible characters such as backslashes, so those may also be an issue.]

Change History

comment:1 Changed 4 years ago by nhjm449

  • Cc nhjm449@… added

comment:2 Changed 4 years ago by kaga

  • Cc kaga@… added

I am not 100% sure, but I believe the use of rawurlencode() on the url would fix this problem.

Note: See TracTickets for help on using tickets.