Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
cc61edfa
Commit
cc61edfa
authored
6 years ago
by
Johann-S
Browse files
Options
Download
Email Patches
Plain Diff
fix(scrollspy): xss in target option
parent
14909601
2 merge requests
!28721
Hot test
,
!27561
Adds font-weight-medium to font weight classes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/src/scrollspy.js
+1
-1
js/src/scrollspy.js
with
1 addition
and
1 deletion
+1
-1
js/src/scrollspy.js
+
1
-
1
View file @
cc61edfa
...
...
@@ -115,7 +115,7 @@ const ScrollSpy = (($) => {
this
.
_scrollHeight
=
this
.
_getScrollHeight
()
const
targets
=
$
.
makeArray
(
$
(
this
.
_selector
))
const
targets
=
$
.
makeArray
(
document
.
querySelectorAll
(
this
.
_selector
))
targets
.
map
((
element
)
=>
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets