Merge branch 'cherry-pick-1bef3ab0' into 'pandora_6.0'

Fixed problems with pass when this pass containt blank spaces. 6v

See merge request !431
This commit is contained in:
vgilc 2017-08-18 13:14:36 +02:00
commit 2d90926d23
1 changed files with 4 additions and 1 deletions

View File

@ -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)) {