Skip to content

Commit

Permalink
Fix code scanning alert issue-#1357
Browse files Browse the repository at this point in the history
  • Loading branch information
JisanAR03 authored and DonnieBLT committed Nov 1, 2023
1 parent 2e76c5d commit a075b9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/static/vendor/bootstrap/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -713,8 +713,8 @@ function sanitizeInput(input) {

function getTargetFromTrigger($trigger) {
var href
var target = $trigger.attr('data-target')
|| (href = $trigger.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7
var target = sanitizeSelector($trigger.attr('data-target'))
|| (href = sanitizeSelector($trigger.attr('href'))) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7

return $(target)
}
Expand Down

0 comments on commit a075b9e

Please sign in to comment.