We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ee43ae commit eddaa67Copy full SHA for eddaa67
login.php
@@ -25,7 +25,7 @@
25
<label for="inputUser" class="sr-only">Username</label>
26
<input type="text" name="username" id="inputUser" class="form-control"
27
placeholder="Username"
28
- value="<?= isset($_POST['username']) ? $_POST['username'] : '' ?>"
+ value="<?= isset($_POST['username']) ? htmlentities($_POST['username'], defined('ENT_SUBSTITUTE') ? (ENT_QUOTES | ENT_SUBSTITUTE) : ENT_QUOTES, 'utf-8') : '' ?>"
29
required <?= isset($_POST['username']) ? '' : 'autofocus' ?>>
30
31
<label for="inputPassword" class="sr-only">Password</label>
0 commit comments