aboutsummaryrefslogtreecommitdiff
path: root/www/functions/func_login.php
diff options
context:
space:
mode:
authorroot2014-04-20 18:55:24 +0200
committerroot2014-04-20 18:55:24 +0200
commit3c94eb3f608f9bf0dc8d19583abe273b3a67e5ff (patch)
tree9f589754331dbbab8f90f467f36a10f9a5ed99a7 /www/functions/func_login.php
parent2441480079f68bd4bc15a12d7b9b47c18ce0bd52 (diff)
downloadjungegemeinde-3c94eb3f608f9bf0dc8d19583abe273b3a67e5ff.tar.gz
Fixed XSS vulnerability.
Diffstat (limited to 'www/functions/func_login.php')
-rwxr-xr-xwww/functions/func_login.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/functions/func_login.php b/www/functions/func_login.php
index d909180..7944c3e 100755
--- a/www/functions/func_login.php
+++ b/www/functions/func_login.php
@@ -4,7 +4,7 @@ function login($db){
/*___Database Query: Login___*/
$username = $_POST["username"];
$password = $_POST["password"];
- $safe_username = SQLite3::escapeString("$username");
+ $safe_username = SQLite3::escapeString(htmlentities($username));
$log_in = false;
$real_password = "";