WebUI: show correct location path

The `path` might contains '&' (delimit character) so it must be
encoded.
Closes #15976.
This commit is contained in:
Chocobo1 2022-03-30 14:56:49 +08:00
parent 08f3630f01
commit 0d334369f0
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
2 changed files with 4 additions and 3 deletions

View file

@ -487,7 +487,7 @@ const initializeWindows = function() {
id: 'setLocationPage',
title: "QBT_TR(Set location)QBT_TR[CONTEXT=TransferListWidget]",
loadMethod: 'iframe',
contentURL: new URI("setlocation.html").setData("hashes", hashes.join('|')).setData("path", row.full_data.save_path).toString(),
contentURL: new URI("setlocation.html").setData("hashes", hashes.join('|')).setData("path", encodeURIComponent(row.full_data.save_path)).toString(),
scrollbars: false,
resizable: true,
maximizable: false,