diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-04-14 12:54:33 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-04-14 12:57:10 +0200 |
commit | d3bf01376150ffd5de18cdc53f5e66b0c4979526 (patch) | |
tree | f4d9d775152ff8a8b5acd30adcb4381f010f0395 /lib/user | |
parent | 5c55b9c5acb678e1e3e329c5926a1a11b83ab5fb (diff) | |
download | nextcloud-server-d3bf01376150ffd5de18cdc53f5e66b0c4979526.tar.gz nextcloud-server-d3bf01376150ffd5de18cdc53f5e66b0c4979526.zip |
prevent users with the same name but different casing from being created
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 3eade276dd9..c1bac1bb0b5 100644 --- a/lib/user/database.php +++ b/lib/user/database.php @@ -172,7 +172,7 @@ class OC_User_Database extends OC_User_Backend { * @return boolean */ public function userExists($uid){ - $query = OC_DB::prepare( "SELECT * FROM `*PREFIX*users` WHERE uid = ?" ); + $query = OC_DB::prepare( "SELECT * FROM `*PREFIX*users` WHERE uid LIKE ?" ); $result = $query->execute( array( $uid )); return $result->numRows() > 0; |