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 62453cc commit f06e6b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 () {
return $(this.options.parent)
.find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]')
Collapse.prototype.getParent = function () {var sanitizedParent = sanitizeSelector(this.options.parent);
return $(sanitizedParent)
.find('[data-toggle="collapse"][data-parent="' + sanitizedParent + '"]')
.each($.proxy(function (i, element) {
var $element = $(element)
this.addAriaAndCollapsedClass(getTargetFromTrigger($element), $element)
Expand Down

0 comments on commit f06e6b8

Please sign in to comment.