mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06: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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user