Skip to content

Commit

Permalink
fix(tooltip): xss CVE-2018-14042
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 2b4597a commit 7cfc6a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
.addClass(placement)
.data('bs.' + this.type, this)

this.options.container ? $tip.appendTo(this.options.container) : $tip.insertAfter(this.$element)
this.options.container ? $tip.appendTo($(document).find(this.options.container)) : $tip.insertAfter(this.$element)
this.$element.trigger('inserted.bs.' + this.type)

var pos = this.getPosition()
Expand Down

0 comments on commit 7cfc6a9

Please # to comment.