summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Morrissey <craig@owncloud.com>2014-11-07 12:49:24 -0500
committerCraig Morrissey <craig@owncloud.com>2014-11-07 12:49:24 -0500
commiteea96298951805dfc6eb9f58ccb172b5a718e7e2 (patch)
tree193cd91e67acacd6e299f2bcef618c4a43995cf4
parent3ee491b0de88e44c39387a2eb25915597e90308c (diff)
downloadnextcloud-server-eea96298951805dfc6eb9f58ccb172b5a718e7e2.tar.gz
nextcloud-server-eea96298951805dfc6eb9f58ccb172b5a718e7e2.zip
logging changes
-rw-r--r--lib/user.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/user.php b/lib/user.php
index 690205f9669..9bb46ddfad4 100644
--- a/lib/user.php
+++ b/lib/user.php
@@ -247,6 +247,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);
+
$run = true;
OC_Hook::emit( "OC_User", "pre_login", array( "run" => &$run, "uid" => $uid ));