WebUI: Fix removing tracker URL with '|' character

Closes #19074.
PR #21346.
This commit is contained in:
Thomas Piccirello 2024-09-21 23:22:52 -07:00 committed by sledgehammer999
parent 9ac14cdf9f
commit c3c7f28bad
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

@ -219,7 +219,7 @@ window.qBittorrent.PropTrackers = (function() {
method: "post", method: "post",
data: { data: {
hash: current_hash, hash: current_hash,
urls: selectedTrackers.join("|") urls: selectedTrackers.map(encodeURIComponent).join("|")
}, },
onSuccess: function() { onSuccess: function() {
updateData(); updateData();