From: Craig Morrissey Date: Fri, 7 Nov 2014 17:45:42 +0000 (-0500) Subject: logging changes X-Git-Tag: v8.0.0alpha1~341 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=541344d880cff18b64916ee7fb6b5dae5f415372;p=nextcloud-server.git logging changes --- 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) {