[Bugfix] Data table xss attack

This commit is contained in:
ibuler
2018-07-08 13:02:43 +08:00
parent 37bb344166
commit b6cd4a20c5
2 changed files with 2 additions and 2 deletions

View File

@@ -272,7 +272,7 @@ jumpserver.initDataTable = function (options) {
$(td).html('<input type="checkbox" class="text-center ipt_check" id=99991937>'.replace('99991937', cellData));
}
},
{className: 'text-center', targets: '_all'}
{className: 'text-center', render: $.fn.dataTable.render.text(), targets: '_all'}
];
columnDefs = options.columnDefs ? options.columnDefs.concat(columnDefs) : columnDefs;
var select = {