]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Prevent `getSelector` from returning URLs as selector (#32586)
authorFlorian Vick <florian@eagle-eye-studios.net>
Wed, 3 Feb 2021 19:58:54 +0000 (20:58 +0100)
committerGitHub <noreply@github.com>
Wed, 3 Feb 2021 19:58:54 +0000 (21:58 +0200)
commit2a9d72133d52af1ca72944f1d19474957b54d618
treebc6fd0cb03ebe23636fc4ef08ce5b9b37a797a96
parent3770b7b9e3fd92b164a58caef05a4d9cd650a86a
Prevent `getSelector` from returning URLs as selector (#32586)

* added checks to getSelector in util to prevent returning hrefs that are invalid selectors

* restored compatibility for the class selector and added test cases for keeping urls from being returned as a selector

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
js/src/util/index.js
js/tests/unit/util/index.spec.js