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

@@ -32,10 +32,9 @@
window.addEvent('domready', function() {
const hash = new URI().getData('hash');
const path = new URI().getData('path');
const oldPath = new URI().getData('path');
const isFolder = ((new URI().getData('isFolder')) === 'true');
const oldPath = decodeURIComponent(path);
const oldName = window.qBittorrent.Filesystem.fileName(oldPath);
$('rename').value = oldName;
$('rename').focus();