]> source.dussan.org Git - nextcloud-server.git/commitdiff
Treat getUsers() as case insensitive, helpful for showing proper results in the share...
authorMichael Gapczynski <mtgap@owncloud.com>
Wed, 12 Sep 2012 05:12:25 +0000 (01:12 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Wed, 12 Sep 2012 05:12:25 +0000 (01:12 -0400)
lib/user/database.php

index 76b44a2f6ca73d4879cc1b9e4d36a91b30d087df..25e24fcf7e4085fdf6c1bf2c546642b145657a9d 100644 (file)
@@ -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()) {