diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-06-08 21:23:25 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-06-08 21:38:10 +0200 |
commit | ac365121022f8b03ac47c41f8b3e32f9ba3f90e6 (patch) | |
tree | 6be1b33ec22dad1f74c46f97728362288176206b /lib/user | |
parent | b9a152450837c90ab3463c0d00ff05219d4b875e (diff) | |
download | nextcloud-server-ac365121022f8b03ac47c41f8b3e32f9ba3f90e6.tar.gz nextcloud-server-ac365121022f8b03ac47c41f8b3e32f9ba3f90e6.zip |
Don't use substr to get first char of string
Diffstat (limited to 'lib/user')
-rw-r--r-- | lib/user/database.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/user/database.php b/lib/user/database.php index bb077c8364f..a48b8357d64 100644 --- a/lib/user/database.php +++ b/lib/user/database.php @@ -129,7 +129,7 @@ class OC_User_Database extends OC_User_Backend { $row=$result->fetchRow(); if($row){ $storedHash=$row['password']; - if (substr($storedHash,0,1)=='$'){//the new phpass based hashing + if ($storedHash[0]=='$'){//the new phpass based hashing $hasher=$this->getHasher(); if($hasher->CheckPassword($password.OC_Config::getValue('passwordsalt', ''), $storedHash)){ return $row['uid']; |