From a28f4e4f1881916139e10859b98ce91d8d72bd64 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Wed, 23 Dec 2020 18:11:14 +0000 Subject: [PATCH] Prevent malformed DNS queries executing JS on querylog/long term query log Signed-off-by: Adam Warner --- scripts/pi-hole/js/db_queries.js | 4 ++-- scripts/pi-hole/js/queries.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/pi-hole/js/db_queries.js b/scripts/pi-hole/js/db_queries.js index ec38f751..1ab5c340 100644 --- a/scripts/pi-hole/js/db_queries.js +++ b/scripts/pi-hole/js/db_queries.js @@ -324,8 +324,8 @@ $(function () { } }, { width: "10%" }, - { width: "40%" }, - { width: "20%", type: "ip-address" }, + { width: "40%", render: $.fn.dataTable.render.text() }, + { width: "20%", type: "ip-address", render: $.fn.dataTable.render.text() }, { width: "10%" }, { width: "5%" } ], diff --git a/scripts/pi-hole/js/queries.js b/scripts/pi-hole/js/queries.js index 88779797..c422220e 100644 --- a/scripts/pi-hole/js/queries.js +++ b/scripts/pi-hole/js/queries.js @@ -201,7 +201,7 @@ $(function () { buttontext = ""; } - fieldtext += ''; + fieldtext += ''; if (colorClass !== false) { $(row).addClass(colorClass);