]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix(tab): remove xss 27431/head
authorJohann-S <johann.servoire@gmail.com>
Mon, 7 May 2018 07:47:01 +0000 (09:47 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 7 May 2018 08:22:05 +0000 (11:22 +0300)
js/tab.js

index 990c25be50e0d0ddddba808119915d15fce934c3..4f9ad9ff9da9deb3b2c8695a095b6f166ec8b7b4 100644 (file)
--- a/js/tab.js
+++ b/js/tab.js
@@ -48,7 +48,7 @@
 
     if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) return
 
-    var $target = $(selector)
+    var $target = $(document).find(selector)
 
     this.activate($this.closest('li'), $ul)
     this.activate($target, $target.parent(), function () {