Use DataTable's safe renderer in query log

See https://datatables.net/manual/security
This commit is contained in:
Mcat12
2017-06-24 22:31:31 -04:00
parent 2c99183d33
commit 68794061a5

View File

@@ -175,8 +175,8 @@ $(document).ready(function() {
"columns": [
{ "width" : "20%", "render": function (data, type, full, meta) { if(type === "display"){return moment.unix(data).format("Y-MM-DD HH:mm:ss z");}else{return data;} }},
{ "width" : "10%" },
{ "width" : "40%" },
{ "width" : "10%" },
{ "width" : "40%", "render": $.fn.dataTable.render.text() },
{ "width" : "10%", "render": $.fn.dataTable.render.text() },
{ "width" : "10%" },
{ "width" : "10%" },
],