Escape output on file upload messages
This commit is contained in:
parent
79b5d815d6
commit
db03bb6c1a
|
|
@ -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>
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue