summaryrefslogtreecommitdiffstats
path: root/lib/user/database.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-09-12 01:12:25 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-09-12 01:12:25 -0400
commitca6322465d8edab9fc4d321e93015c27a0f3091c (patch)
tree0b6a143debffca9c2eed497c2faa36ce9a9027f6 /lib/user/database.php
parent60feaf9abfbc60d950de9c2b820ad46b3b973eb3 (diff)
downloadnextcloud-server-ca6322465d8edab9fc4d321e93015c27a0f3091c.tar.gz
nextcloud-server-ca6322465d8edab9fc4d321e93015c27a0f3091c.zip
Treat getUsers() as case insensitive, helpful for showing proper results in the share with autocomplete
Diffstat (limited to 'lib/user/database.php')
-rw-r--r--lib/user/database.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/user/database.php b/lib/user/database.php
index 76b44a2f6ca..25e24fcf7e4 100644
--- a/lib/user/database.php
+++ b/lib/user/database.php
@@ -155,7 +155,7 @@ class OC_User_Database extends OC_User_Backend {
* Get a list of all users.
*/
public function getUsers($search = '', $limit = null, $offset = null) {
- $query = OC_DB::prepare('SELECT `uid` FROM `*PREFIX*users` WHERE `uid` LIKE ?',$limit,$offset);
+ $query = OC_DB::prepare('SELECT `uid` FROM `*PREFIX*users` WHERE LOWER(`uid`) LIKE LOWER(?)',$limit,$offset);
$result = $query->execute(array($search.'%'));
$users = array();
while ($row = $result->fetchRow()) {