Enforce escaping on all template content
This commit is contained in:
		| @@ -18,11 +18,11 @@ | ||||
| $(document).ready(function() { | ||||
|   var table = $('#ds-data-table').dataTable({ | ||||
|     "deferRender": true, | ||||
|     "data": [% results %], | ||||
|     "data": [% results | none %], | ||||
|     "columns": [{ | ||||
|         "data": 'ip', | ||||
|         "render": function(data, type, row, meta) { | ||||
|           return '<a href="[% uri_for('/device') %]?q=' + encodeURIComponent(data) + '">' + he.encode(row.dns || row.name || row.ip) + '</a>'; | ||||
|           return '<a href="[% uri_for('/device') | none %]?q=' + encodeURIComponent(data) + '">' + he.encode(row.dns || row.name || row.ip) + '</a>'; | ||||
|         } | ||||
|       }, { | ||||
|         "data": 'location', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user