summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Morrissey <craig@owncloud.com>2014-11-07 12:45:42 -0500
committerCraig Morrissey <craig@owncloud.com>2014-11-07 12:45:42 -0500
commit541344d880cff18b64916ee7fb6b5dae5f415372 (patch)
tree2803246d4f0e221d327bef4425d446a56e8f66ac
parent68a522a8fab302942bfb259e6d00e53d931661e5 (diff)
downloadnextcloud-server-541344d880cff18b64916ee7fb6b5dae5f415372.tar.gz
nextcloud-server-541344d880cff18b64916ee7fb6b5dae5f415372.zip
logging changes
-rw-r--r--lib/private/user.php3
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) {