mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed problems with pass when this pass containt blank spaces.
This commit is contained in:
parent
96a13fe84c
commit
1bef3ab0de
@ -63,7 +63,9 @@ class User {
|
||||
$user = $system->getRequest('user', null);
|
||||
$password = $system->getRequest('password', null);
|
||||
|
||||
$this->login($user, $password);
|
||||
$nick = $system->safeInput($user);
|
||||
$pass = $system->safeInput($password);
|
||||
$this->login($nick, $pass);
|
||||
}
|
||||
|
||||
return $this->logged;
|
||||
@ -76,6 +78,7 @@ class User {
|
||||
$user = $system->getRequest('user', null);
|
||||
$user = $system->safeInput($user);
|
||||
$password = $system->getRequest('password', null);
|
||||
$password = $system->safeInput($password);
|
||||
}
|
||||
|
||||
if (!empty($user) && !empty($password)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user