Prevent malformed DNS queries executing JS on querylog/long term query log

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner
2020-12-23 18:11:14 +00:00
parent c32bcd3715
commit a28f4e4f18
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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%" }
],
+1 -1
View File
@@ -201,7 +201,7 @@ $(function () {
buttontext = "";
}
fieldtext += '<input type="hidden" name="id" value="' + data[4] + '">';
fieldtext += '<input type="hidden" name="id" value="' + parseInt(data[4], 10) + '">';
if (colorClass !== false) {
$(row).addClass(colorClass);