1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-02 18:04:32 +00:00

Encode torrent name before passing in URL

This commit is contained in:
Thomas Piccirello 2018-12-25 00:30:29 -05:00
parent 26a9af850b
commit 06edabb9be
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@
var name = new URI().getData('name'); var name = new URI().getData('name');
// set text field to current value // set text field to current value
if (name) if (name)
$('rename').value = escapeHtml(name); $('rename').value = escapeHtml(decodeURIComponent(name));
$('rename').focus(); $('rename').focus();
$('renameButton').addEvent('click', function(e) { $('renameButton').addEvent('click', function(e) {

View File

@ -485,7 +485,7 @@ var initializeWindows = function() {
id: 'renamePage', id: 'renamePage',
title: "QBT_TR(Rename)QBT_TR[CONTEXT=TransferListWidget]", title: "QBT_TR(Rename)QBT_TR[CONTEXT=TransferListWidget]",
loadMethod: 'iframe', loadMethod: 'iframe',
contentURL: 'rename.html?hash=' + hashes[0] + '&name=' + row.full_data.name, contentURL: 'rename.html?hash=' + hash + '&name=' + encodeURIComponent(row.full_data.name),
scrollbars: false, scrollbars: false,
resizable: false, resizable: false,
maximizable: false, maximizable: false,