Skip to content

Commit f6a5dbe

Browse files
author
Gabriel Schulhof
committed
Resources: Fix injection problem
Fixes jquerygh-384
1 parent 2c07018 commit f6a5dbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/results.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<h2>You Chose:</h2>
2222
<?php
23-
echo "<p> " . $_REQUEST['choice'] . "</p>";
23+
echo "<p> " . htmlentities( $_REQUEST['choice'] ) . "</p>";
2424
?>
2525

2626
</div>

0 commit comments

Comments
 (0)