Skip to content

Commit f0b8d2c

Browse files
committed
add html character escape to harden code
1 parent 86ed461 commit f0b8d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/views/collections/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div class="row-fluid top-margin">
2525
<div class="span12 main-content">
2626
<?php if (isset($query)): ?>
27-
<p class="search-results-hd">Your search for <em><strong><?php echo $query ?></strong></em> returned the following results:</p>
27+
<p class="search-results-hd">Your search for <em><strong><?php echo htmlspecialchars($query) ?></strong></em> returned the following results:</p>
2828
<?php endif ?>
2929
<div class="container" id="collections">
3030
<?php foreach ($collections as $collection_item): ?>

0 commit comments

Comments
 (0)