Merge pull request #10201 from snipe/fixes/xss_on_export

Fixes possible XSS on all-file-types export
This commit is contained in:
snipe 2021-10-15 09:54:52 -07:00 committed by GitHub
commit f87ffb84d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,6 +75,10 @@
export: 'fa-download', export: 'fa-download',
clearSearch: 'fa-times' clearSearch: 'fa-times'
}, },
exportOptions: {
htmlContent: true,
},
exportTypes: ['csv', 'excel', 'doc', 'txt','json', 'xml', 'pdf'], exportTypes: ['csv', 'excel', 'doc', 'txt','json', 'xml', 'pdf'],
onLoadSuccess: function () { onLoadSuccess: function () {
$('[data-toggle="tooltip"]').tooltip(); // Needed to attach tooltips after ajax call $('[data-toggle="tooltip"]').tooltip(); // Needed to attach tooltips after ajax call