Compare commits

...

2 Commits

Author SHA1 Message Date
7f7b7a24e0 Merge branch 'main' into mitigation 2021-11-23 19:05:47 +01:00
ed023c475d Fix this one XSS issue 2021-11-23 18:36:52 +01:00

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>