Skip to content

Commit 39f4661

Browse files
committed
CoverPage: Escape color value
Apparently, text/html and text/css are equal. Not sure who to blame, me, the browser or standards…
1 parent fead9f8 commit 39f4661

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/Reporting/Web/Widget/CoverPage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ protected function assemble()
157157
if ($this->hasColor()) {
158158
$coverPageLogo = (new StyleWithNonce())
159159
->setModule('reporting')
160-
->addFor($content, ['color' => $this->getColor()]);
160+
->addFor($content, ['color' => Html::escape($this->getColor())]);
161161

162162
$content->addHtml($coverPageLogo);
163163
}

0 commit comments

Comments
 (0)