WebUI: Avoid decoding strings repeatedly

Fix #14553
This commit is contained in:
brvphoenix
2021-03-19 01:27:36 -07:00
parent f6ab1d63e8
commit 5beb1b2cd0
10 changed files with 16 additions and 15 deletions

View File

@@ -33,7 +33,7 @@
const path = new URI().getData('path');
// set text field to current value
if (path)
$('setLocation').value = window.qBittorrent.Misc.escapeHtml(decodeURIComponent(path));
$('setLocation').value = window.qBittorrent.Misc.escapeHtml(path);
$('setLocation').focus();
$('setLocationButton').addEvent('click', function(e) {