Skip to content

A free open source IT asset/license management system

Fixes possible XSS on all-file-types export

snipebda23bb1e66f
diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php
index 7ad14bf905..130bc9c2d3 100644
--- a/resources/views/partials/bootstrap-table.blade.php
+++ b/resources/views/partials/bootstrap-table.blade.php
@@ -75,6 +75,10 @@
export: 'fa-download',
clearSearch: 'fa-times'
},
+ exportOptions: {
+ htmlContent: true,
+ },
+
exportTypes: ['csv', 'excel', 'doc', 'txt','json', 'xml', 'pdf'],
onLoadSuccess: function () {
$('[data-toggle="tooltip"]').tooltip(); // Needed to attach tooltips after ajax call