Dashboard settings: escape panes' names to prevent XSS

This commit is contained in:
Alexander A. Klimov 2016-02-23 14:00:07 +01:00
parent 358b20cec3
commit b670855f25

View File

@ -20,7 +20,7 @@
<?php foreach ($this->dashboard->getPanes() as $pane): ?> <?php foreach ($this->dashboard->getPanes() as $pane): ?>
<tr style="background-color: #f1f1f1;"> <tr style="background-color: #f1f1f1;">
<th colspan="2" style="text-align: left; padding: 0.5em;"> <th colspan="2" style="text-align: left; padding: 0.5em;">
<?= $pane->getName(); ?> <?= $this->escape($pane->getName()) ?>
</th> </th>
<th> <th>
<?= $this->qlink( <?= $this->qlink(