Fix this one XSS issue
This commit is contained in:
parent
c72b7b3b7f
commit
ed023c475d
@ -14,7 +14,7 @@ if (isset($_GET["name"]))
|
|||||||
{
|
{
|
||||||
$name = $_GET["name"];
|
$name = $_GET["name"];
|
||||||
?>
|
?>
|
||||||
<div>Hey <?= $name ?>, how are you doing?</div>
|
<div>Hey <?= htmlspecialchars($name) ?>, how are you doing?</div>
|
||||||
<div>Enjoy this picture:</div>
|
<div>Enjoy this picture:</div>
|
||||||
<div><img src="//unsplash.it/256"></div>
|
<div><img src="//unsplash.it/256"></div>
|
||||||
<hr>
|
<hr>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user