Escape output on file upload messages

This commit is contained in:
Marcus Bointon 2020-08-04 08:51:55 +02:00
parent 79b5d815d6
commit db03bb6c1a
No known key found for this signature in database
GPG Key ID: DE31CD6EB646AA24
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ if (array_key_exists('userfile', $_FILES)) {
<input type="submit" value="Send File">
</form>
<?php } else {
echo $msg;
echo htmlspecialchars($msg);
} ?>
</body>
</html>

View File

@ -49,7 +49,7 @@ if (array_key_exists('userfile', $_FILES)) {
<input type="submit" value="Send Files">
</form>
<?php } else {
echo $msg;
echo htmlspecialchars($msg);
} ?>
</body>
</html>