diff options
Diffstat (limited to 'lib/private/user.php')
-rwxr-xr-x | lib/private/user.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/user.php b/lib/private/user.php index c6524687be1..d3cf1c00884 100755 --- a/lib/private/user.php +++ b/lib/private/user.php @@ -229,6 +229,9 @@ class OC_User { * Log in a user and regenerate a new session - if the password is ok */ public static function login($uid, $password) { + $uid = str_replace("\0", '', $uid); + $password = str_replace("\0", '', $password); + session_regenerate_id(true); return self::getUserSession()->login($uid, $password); } |