Skip to content

Commit

Permalink
Bug: 14857
Browse files Browse the repository at this point in the history
Escape user supplied color data, preventing XSS vuln.
  • Loading branch information
mrubinsk committed Sep 25, 2018
1 parent dede4ee commit dcad662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/View/Sidebar.php
Expand Up @@ -221,7 +221,7 @@ public function addRow(array $row, $container = '')
if (strlen($row['style'])) {
$row['style'] .= ';';
}
$row['style'] .= 'background-color:' . $row['color']
$row['style'] .= 'background-color:' . htmlspecialchars($row['color'])
. ';color:#' . $foreground;
if (isset($row['edit'])) {
$row['editLink'] = $row['edit']
Expand Down

0 comments on commit dcad662

Please sign in to comment.