Skip to content

Commit

Permalink
fix(collapse): xss CVE-2018-14040
Browse files Browse the repository at this point in the history
  • Loading branch information
don-spyker authored and Dominik Speicher committed Aug 10, 2018
1 parent 332a190 commit 2b4597a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
}

Collapse.prototype.getParent = function () {
return $(this.options.parent)
return $(document).find(this.options.parent)
.find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]')
.each($.proxy(function (i, element) {
var $element = $(element)
Expand Down

0 comments on commit 2b4597a

Please sign in to comment.