mirror of
https://github.com/transmission/transmission.git
synced 2026-04-20 00:40:03 +01:00
* 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 commit6816f59295. * 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 commit6816f59295. * prepare for future Bittorrent v2 usage
263 B
263 B