Skip to content
Snippets Groups Projects
Verified Commit 5efc69ac authored by Takuro Magaki's avatar Takuro Magaki
Browse files

Modify to sanitize strings in a progress bar id attribute.

parent 61ac8eb2
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@
*/
Drupal.theme.progressBar = function (id) {
return (
`<div id="${id}" class="progress" aria-live="polite">` +
`<div id="${Drupal.checkPlain(id)}" class="progress" aria-live="polite">` +
'<div class="progress__label">&nbsp;</div>' +
'<div class="progress__track"><div class="progress__bar"></div></div>' +
'<div class="progress__percentage"></div>' +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment