There was an error while loading. Please reload this page.
1 parent fd12167 commit b915f25Copy full SHA for b915f25
index.php
@@ -41,7 +41,7 @@
41
<form action="" method="POST">
42
<div class="form-group">
43
<label for="cmd">Command</label>
44
- <input type="text" class="form-control" name="cmd" id="cmd" value="<?= $_POST['cmd'] ?>" required>
+ <input type="text" class="form-control" name="cmd" id="cmd" value="<?= htmlspecialchars($_POST['cmd'], ENT_QUOTES, 'UTF-8') ?>" required>
45
</div>
46
<button type="submit" class="btn btn-default">Execute</button>
47
</form>
0 commit comments