mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Fix WebUI encoding of special characters
This commit is contained in:
@@ -24,7 +24,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 = decodeURIComponent(name);
|
||||||
|
|
||||||
$('rename').focus();
|
$('rename').focus();
|
||||||
$('renameButton').addEvent('click', function(e) {
|
$('renameButton').addEvent('click', function(e) {
|
||||||
|
|||||||
@@ -452,7 +452,7 @@ 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,
|
||||||
|
|||||||
Reference in New Issue
Block a user