mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 21:52:32 -06:00
Merge pull request #14570 from brvphoenix/decode
WebUI: Avoid decoding strings repeatedly
This commit is contained in:
@@ -120,9 +120,9 @@ const initializeWindows = function() {
|
||||
const id = 'downloadPage';
|
||||
let contentUrl = 'download.html';
|
||||
if (urls && (urls.length > 0)) {
|
||||
contentUrl += ('?urls=' + urls.map(function(url) {
|
||||
contentUrl += ('?urls=' + encodeURIComponent(urls.map(function(url) {
|
||||
return encodeURIComponent(url);
|
||||
}).join("|"));
|
||||
}).join("|")));
|
||||
}
|
||||
|
||||
new MochaUI.Window({
|
||||
|
||||
Reference in New Issue
Block a user