Trim username input before storing in session (#7977)
This commit is contained in:
@@ -639,7 +639,7 @@ class authentication {
|
|||||||
|
|
||||||
//if the username
|
//if the username
|
||||||
if (!empty($_REQUEST["username"])) {
|
if (!empty($_REQUEST["username"])) {
|
||||||
$_SESSION['username'] = $_REQUEST["username"];
|
$_SESSION['username'] = trim($_REQUEST["username"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
//set a default value for unqiue
|
//set a default value for unqiue
|
||||||
|
|||||||
Reference in New Issue
Block a user