diff options
| author | Johann-S <[email protected]> | 2017-08-25 21:54:49 +0200 |
|---|---|---|
| committer | Johann-S <[email protected]> | 2017-08-25 23:20:14 +0100 |
| commit | bcad4bcb5f5a9ef079b2883a48a698b35261e083 (patch) | |
| tree | a1815bdc3b26c9086e8aa9deffa5a6b6d3f8c49a /js/src/util.js | |
| parent | ba6a6f13691000ffaf22ef8e731513737659447f (diff) | |
| download | bootstrap-bcad4bcb5f5a9ef079b2883a48a698b35261e083.tar.xz bootstrap-bcad4bcb5f5a9ef079b2883a48a698b35261e083.zip | |
Fix XSS in data-target
Diffstat (limited to 'js/src/util.js')
| -rw-r--r-- | js/src/util.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/util.js b/js/src/util.js index 69fb8283c..cd3f1fb6a 100644 --- a/js/src/util.js +++ b/js/src/util.js @@ -117,7 +117,7 @@ const Util = (($) => { } try { - const $selector = $(selector) + const $selector = $(document).find(selector) return $selector.length > 0 ? selector : null } catch (error) { return null |
