Skip to content
Snippets Groups Projects
Verified Commit 4160215e 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
......@@ -14,8 +14,9 @@
* The HTML for the progress bar.
*/
Drupal.theme.progressBar = function (id) {
const escapedId = Drupal.checkPlain(id);
return (
`<div id="${id}" class="progress" aria-live="polite">` +
`<div id="${escapedId}" 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