mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 07:46:17 -07:00
Use proper method for manipulating text
`innerText` is too powerful for the job here, use a more restricted/secure way to manipulate text. Related: #17211. PR #17212.
This commit is contained in:
parent
d5e6d161f2
commit
3dd616f6ff
4 changed files with 8 additions and 8 deletions
|
@ -106,7 +106,7 @@ window.qBittorrent.Download = (function() {
|
|||
}
|
||||
else {
|
||||
item.nextElementSibling.hidden = true;
|
||||
const text = item.options[item.selectedIndex].innerHTML;
|
||||
const text = item.options[item.selectedIndex].textContent;
|
||||
item.nextElementSibling.value = text;
|
||||
|
||||
if ($('autoTMM').selectedIndex == 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue