Skip to content

Commit

Permalink
Add missing escaping to partition listing
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jun 17, 2016
1 parent 418aeea commit 0815af3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/table/structure/display_partitions.phtml
Expand Up @@ -10,12 +10,12 @@ use PMA\libraries\Util; ?>
<?php else: ?>
<p>
<?= __('Partitioned by:');?>
<code><?= $partitionMethod , '(' , $partitionExpression , ' )'; ?></code>
<code><?= htmlspecialchars($partitionMethod) , '(' , htmlspecialchars($partitionExpression) , ' )'; ?></code>
</p>
<?php if ($hasSubPartitions): ?>
<p>
<?= __('Sub partitioned by:'); ?>
<code><?= $subPartitionMethod , '(' , $subPartitionExpression , ' )'; ?></code>
<code><?= htmlspecialchars($subPartitionMethod) , '(' , htmlspecialchars($subPartitionExpression) , ' )'; ?></code>
<p>
<?php endif; ?>
<table>
Expand Down Expand Up @@ -139,4 +139,4 @@ use PMA\libraries\Util; ?>
<?php endif; ?>
</form>
</fieldset>
</div>
</div>

0 comments on commit 0815af3

Please sign in to comment.