Skip to content

Commit

Permalink
Fixes possible XSS on all-file-types export
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <snipe@snipe.net>
  • Loading branch information
snipe committed Oct 15, 2021
1 parent 5d94b99 commit bda23bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/views/partials/bootstrap-table.blade.php
Expand Up @@ -75,6 +75,10 @@ classes: 'table table-responsive table-no-bordered',
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
Expand Down

0 comments on commit bda23bb

Please sign in to comment.