Skip to content

Commit

Permalink
Merge pull request lota#22 from c3retc3/patch-1
Browse files Browse the repository at this point in the history
XSS fix (login_username)
  • Loading branch information
gianmarcotoso authored May 10, 2018
2 parents 2e9b356 + 0e84ccf commit 3677de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function page_exit()
function login_form()
{
if (isset($_POST["login_username"]))
$login_username = $_POST["login_username"];
$login_username = htmlspecialchars($_POST["login_username"], ENT_QUOTES, "utf-8");
else
$login_username = null;

Expand Down

0 comments on commit 3677de8

Please sign in to comment.