Skip to content

Commit

Permalink
Fix code scanning alert issue-#1354
Browse files Browse the repository at this point in the history
  • Loading branch information
JisanAR03 authored and DonnieBLT committed Nov 1, 2023
1 parent bf6ef11 commit 0446c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/static/vendor/bootstrap/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,7 @@ function sanitizeInput(input) {
$(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function (e) {
var $this = $(this)
var href = $this.attr('href')
var $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) // strip for ie7
var $target = $((sanitizeSelector($this.attr('data-target'))) || (href && sanitizeSelector(href.replace(/.*(?=#[^\s]+$)/, ''))));
var option = $target.data('bs.modal') ? 'toggle' : $.extend({remote: !/#/.test(href) && href}, $target.data(), $this.data())

if ($this.is('a')) e.preventDefault()
Expand Down

0 comments on commit 0446c57

Please sign in to comment.