Merge branch 'mitigation' into 'main'

Mitigation

See merge request daniel/sbd-xss!1
This commit is contained in:
Daniel_I_Am 2021-11-25 09:01:10 +00:00
commit b84e78cb84

View File

@ -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>