diff options
-rw-r--r-- | 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 2358f4a14e4..b2a235425c4 100644 --- a/lib/private/user.php +++ b/lib/private/user.php @@ -228,6 +228,9 @@ class OC_User { * Log in a user and regenerate a new session - if the password is ok */ public static function login($loginname, $password) { + $loginname = str_replace("\0", '', $loginname); + $password = str_replace("\0", '', $password); + session_regenerate_id(true); $result = self::getUserSession()->login($loginname, $password); if ($result) { |