Skip to content

Commit

Permalink
Fix code scanning alert issue-OWASP-BLT#1355
Browse files Browse the repository at this point in the history
  • Loading branch information
JisanAR03 committed Nov 1, 2023
1 parent a075b9e commit 62453cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/static/vendor/bootstrap/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -692,9 +692,9 @@ function sanitizeInput(input) {
this[this.$element.hasClass('in') ? 'hide' : 'show']()
}

Collapse.prototype.getParent = function () {var sanitizedParent = sanitizeSelector(this.options.parent);
return $(sanitizedParent)
.find('[data-toggle="collapse"][data-parent="' + sanitizedParent + '"]')
Collapse.prototype.getParent = function () {
return $(this.options.parent)
.find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]')
.each($.proxy(function (i, element) {
var $element = $(element)
this.addAriaAndCollapsedClass(getTargetFromTrigger($element), $element)
Expand Down Expand Up @@ -791,7 +791,7 @@ function sanitizeInput(input) {
Dropdown.VERSION = '3.3.7'

function getParent($this) {
var selector = $this.attr('data-target')
var selector = sanitizeSelector($this.attr('data-target'))

if (!selector) {
selector = $this.attr('href')
Expand Down

0 comments on commit 62453cc

Please sign in to comment.