Files
transmission/tests/libtransmission/assets/bad-utf8-path.torrent
reardonia 31047493f5 UTF8-clean torrent 'path' (#8328)
* fix: mask non-UTF-8 characters in torrent file paths

BEP-3 requires strings to be UTF-8. Run path components through
tr_strv_to_utf8_string() to replace invalid bytes with U+FFFD
before sanitizing. Adds test with good and bad UTF-8 paths.

* replace ctrl characters in 'name' and 'path'

* Revert "replace ctrl characters in 'name' and 'path'"

This reverts commit 6816f59295.

* fix: mask non-UTF-8 characters in torrent file paths

BEP-3 requires strings to be UTF-8. Run path components through
tr_strv_to_utf8_string() to replace invalid bytes with U+FFFD
before sanitizing. Adds test with good and bad UTF-8 paths.

* replace ctrl characters in 'name' and 'path'

* Revert "replace ctrl characters in 'name' and 'path'"

This reverts commit 6816f59295.

* prepare for future Bittorrent v2 usage
2026-02-16 08:49:20 -06:00

263 B