Skip to content

Commit edffb52

Browse files
committed
Fix XSS in zoom search
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
1 parent 019c4f2 commit edffb52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: templates/table/search/rows_zoom.phtml

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ for ($i = 0; $i < 4; $i++): ?>
5656
} ?>
5757
<!-- Column type -->
5858
<td dir="ltr">
59-
<?php echo (isset($type[$i]) ? $type[$i] : ''); ?>
59+
<?php echo (isset($type[$i]) ? htmlspecialchars($type[$i]) : ''); ?>
6060
</td>
6161
<!-- Column Collation -->
6262
<td>
@@ -68,7 +68,7 @@ for ($i = 0; $i < 4; $i++): ?>
6868
</td>
6969
<!-- Inputbox for search criteria value -->
7070
<td>
71-
<?php echo (isset($value[$i]) ? $value[$i] : ''); ?>
71+
<?php echo (isset($value[$i]) ? htmlspecialchars($value[$i]) : ''); ?>
7272
</td>
7373
</tr>
7474
<!-- Displays hidden fields -->

0 commit comments

Comments
 (0)