summaryrefslogtreecommitdiffstats
path: root/lib/private/user.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/user.php')
-rw-r--r--lib/private/user.php3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/private/user.php b/lib/private/user.php
index ff45e9e26a6..2964b58ba14 100644
--- a/lib/private/user.php
+++ b/lib/private/user.php
@@ -212,9 +212,6 @@ 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) {