Skip to content

Commit

Permalink
security: prevent XSS when previewing images
Browse files Browse the repository at this point in the history
  • Loading branch information
streamtw committed Nov 22, 2023
1 parent 6b08141 commit 3bf53c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ function preview(items) {
}

carouselItem.find('.carousel-label').attr('target', '_blank').attr('href', item.url)
.append(item.name)
.text(item.name)
.append($('<i class="fas fa-external-link-alt ml-2"></i>'));

carousel.children('.carousel-inner').append(carouselItem);
Expand Down

0 comments on commit 3bf53c9

Please sign in to comment.