Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix file field xss
  • Loading branch information
fuzegit committed Aug 15, 2023
1 parent ca5f150 commit a6a30e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/modern/js/files.js
Expand Up @@ -6,7 +6,7 @@ icms.files = (function ($) {

this.onDocumentReady = function(){
$('.custom-file-input').on('change',function(){
$(this).next('.custom-file-label').html($(this).val().replace('C:\\fakepath\\', ''));
$(this).next('.custom-file-label').text($(this).val().replace('C:\\fakepath\\', ''));
});
};

Expand Down

0 comments on commit a6a30e7

Please sign in to comment.