diff options
author | Johann-S <johann.servoire@gmail.com> | 2018-05-30 10:46:50 +0300 |
---|---|---|
committer | Johann-S <johann.servoire@gmail.com> | 2018-06-01 10:10:25 +0300 |
commit | 149096016f70fd815540d62c0989fd99cdc809e0 (patch) | |
tree | f835dfb3032829e98592542e4da58d882911e59f /js/src/collapse.js | |
parent | 2d90d369bbc2bd2647620246c55cec8c4705e3d0 (diff) |
fix(collapse): xss in parent option
Diffstat (limited to 'js/src/collapse.js')
-rw-r--r-- | js/src/collapse.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/collapse.js b/js/src/collapse.js index a756542273..2c48cf5452 100644 --- a/js/src/collapse.js +++ b/js/src/collapse.js @@ -289,7 +289,7 @@ const Collapse = (($) => { parent = this._config.parent[0] } } else { - parent = $(this._config.parent)[0] + parent = document.querySelector(this._config.parent) } const selector = |