mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
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:
@@ -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%" }
|
||||
],
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user