Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Morrissey <craig@owncloud.com>2014-11-07 20:47:06 +0300
committerCraig Morrissey <craig@owncloud.com>2014-11-07 20:47:06 +0300
commit3cb244dd2381bbfba66616ec71cfc775bea19d0d (patch)
tree40eda8d3f16964c864ef6dbc3968be44761b9da4
parent78edcd96961ffdc472f18228b71f110a934cbf6f (diff)
logging changes
-rwxr-xr-xlib/private/user.php3
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);
}