mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
Fix encoding of special characters
Special characters would get html encoded (& -> &). This has been tested against several payloads (e.g. <script>alert(0)</script>) to ensure it's not vulnerable to XSS.
This commit is contained in:
parent
183db3475a
commit
368fbd9e7d
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,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(decodeURIComponent(name));
|
$('rename').value = decodeURIComponent(name);
|
||||||
|
|
||||||
$('rename').focus();
|
$('rename').focus();
|
||||||
$('renameButton').addEvent('click', function(e) {
|
$('renameButton').addEvent('click', function(e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue