Fix WebUI removing parameters from magnet links

Closes #10939
This commit is contained in:
Thomas Piccirello 2019-07-20 01:21:49 -07:00
parent 65dfec9acf
commit c17d653544
2 changed files with 10 additions and 12 deletions

View file

@ -135,8 +135,11 @@ const initializeWindows = function() {
showDownloadPage = function(urls) {
const id = 'downloadPage';
let contentUrl = 'download.html';
if (urls && urls.length)
contentUrl += '?urls=' + urls.join("|");
if (urls && (urls.length > 0)) {
contentUrl += ('?urls=' + urls.map(function(url) {
return encodeURIComponent(url);
}).join("|"));
}
new MochaUI.Window({
id: id,