Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix XSS in zoom search
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj committed Jan 18, 2016
1 parent 019c4f2 commit edffb52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/table/search/rows_zoom.phtml
Expand Up @@ -56,7 +56,7 @@ for ($i = 0; $i < 4; $i++): ?>
} ?>
<!-- Column type -->
<td dir="ltr">
<?php echo (isset($type[$i]) ? $type[$i] : ''); ?>
<?php echo (isset($type[$i]) ? htmlspecialchars($type[$i]) : ''); ?>
</td>
<!-- Column Collation -->
<td>
Expand All @@ -68,7 +68,7 @@ for ($i = 0; $i < 4; $i++): ?>
</td>
<!-- Inputbox for search criteria value -->
<td>
<?php echo (isset($value[$i]) ? $value[$i] : ''); ?>
<?php echo (isset($value[$i]) ? htmlspecialchars($value[$i]) : ''); ?>
</td>
</tr>
<!-- Displays hidden fields -->
Expand Down

0 comments on commit edffb52

Please sign in to comment.