Skip to content
Permalink
Browse files Browse the repository at this point in the history
FIXED issue #2: Solves XSS en example-form.php
  • Loading branch information
joserodriguezvalderrama committed Feb 23, 2009
1 parent c4e8508 commit c84fb6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion example-form.php
Expand Up @@ -40,6 +40,8 @@
$style = "background-color: #CCFF99";
}

$request_captcha = htmlspecialchars($_REQUEST['captcha']);

echo <<<HTML
<div id="result" style="$style">
<h2>$captcha_message</h2>
Expand All @@ -50,7 +52,7 @@
</tr>
<tr>
<td>Form CAPTCHA:</td>
<td>{$_REQUEST['captcha']}</td>
<td>$request_captcha</td>
</tr>
</table>
</div>
Expand Down

0 comments on commit c84fb6b

Please sign in to comment.