Skip to content

Commit

Permalink
Escape output on file upload messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Aug 4, 2020
1 parent 79b5d81 commit db03bb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/send_file_upload.phps
Original file line number Diff line number Diff line change
Expand Up @@ -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>
2 changes: 1 addition & 1 deletion examples/send_multiple_file_upload.phps
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit db03bb6

Please sign in to comment.