mirror of
https://github.com/pi-hole/web.git
synced 2025-12-25 05:05:33 +00:00
Queries: fix potential DOM text reinterpreted as HTML issue
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -584,7 +584,9 @@ $(function () {
|
||||
const dnssec = parseDNSSEC(data);
|
||||
|
||||
// Remove HTML from querystatus.fieldtext
|
||||
var rawtext = $("<div/>").html(querystatus.fieldtext).text();
|
||||
const tempDiv = document.createElement("div");
|
||||
tempDiv.innerHTML = querystatus.fieldtext;
|
||||
const rawtext = utils.escapeHtml(tempDiv.textContent || "");
|
||||
|
||||
if (querystatus.icon !== false) {
|
||||
$("td:eq(1)", row).html(
|
||||
|
||||
Reference in New Issue
Block a user