diff options
author | Craig Morrissey <craig@owncloud.com> | 2014-11-07 20:47:06 +0300 |
---|---|---|
committer | Craig Morrissey <craig@owncloud.com> | 2014-11-07 20:47:06 +0300 |
commit | 3cb244dd2381bbfba66616ec71cfc775bea19d0d (patch) | |
tree | 40eda8d3f16964c864ef6dbc3968be44761b9da4 | |
parent | 78edcd96961ffdc472f18228b71f110a934cbf6f (diff) |
logging changes
-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); } |