Skip to content

Filter unsupported tracker URLs from magnets#24512

Open
TurboTheTurtle wants to merge 1 commit into
qbittorrent:masterfrom
TurboTheTurtle:codex/qbt-23937-filter-invalid-trackers
Open

Filter unsupported tracker URLs from magnets#24512
TurboTheTurtle wants to merge 1 commit into
qbittorrent:masterfrom
TurboTheTurtle:codex/qbt-23937-filter-invalid-trackers

Conversation

@TurboTheTurtle

@TurboTheTurtle TurboTheTurtle commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Closes #23937.

Filters unsupported tracker URLs while parsing magnet links so only tracker schemes accepted by libtorrent are added to the torrent descriptor.

Manual validation:

  • Tested on macOS 27.0 (26A5353q), arm64, Qt 6.11.1, local Debug build.
  • Added a magnet link containing valid http and udp trackers plus invalid encoded HTML, ftp, and numeric tracker values.
  • Verified the Trackers tab only listed the valid http://tracker.example.com/announce and udp://tracker.example.com:1337/announce entries.
  • Verified the invalid tracker values were not added and no Unsupported URL protocol tracker entries appeared.

@TurboTheTurtle
TurboTheTurtle marked this pull request as draft June 14, 2026 08:51
@thalieht thalieht added the Core label Jun 14, 2026
@TurboTheTurtle
TurboTheTurtle marked this pull request as ready for review June 14, 2026 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

qBittorrent passes invalid data as a trackers of a magnet link

2 participants