mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-08 16:42:30 -06:00
WebUI: migrate away from inline HTML code
`innerHTML` & `outerHTML` setter will more or less evaluate the value which could be used to inject malicious code. So replace them with safer alternatives. PR #21163.
This commit is contained in:
@@ -67,7 +67,7 @@ window.qBittorrent.PropGeneral ??= (() => {
|
||||
$("torrent_hash_v1").textContent = "";
|
||||
$("torrent_hash_v2").textContent = "";
|
||||
$("save_path").textContent = "";
|
||||
$("comment").innerHTML = "";
|
||||
$("comment").textContent = "";
|
||||
$("private").textContent = "";
|
||||
piecesBar.clear();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user