]> source.dussan.org Git - nextcloud-server.git/commitdiff
LDAP: cachekey in set method needs to match with that one from get
authorArthur Schiwon <blizzz@owncloud.com>
Fri, 3 May 2013 13:13:37 +0000 (15:13 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Fri, 3 May 2013 14:05:46 +0000 (16:05 +0200)
apps/user_ldap/lib/access.php

index 6794e424fdc7293e21aa51cee949a5670ced7953..234e91f792fdad998aa39851e43bebbb91c67b9f 100644 (file)
@@ -1031,7 +1031,7 @@ abstract class Access {
         */
        private function setPagedResultCookie($base, $filter, $limit, $offset, $cookie) {
                if(!empty($cookie)) {
-                       $cachekey = 'lc' . dechex(crc32($base)) . '-' . dechex(crc32($filter)) . '-' .$limit . '-' . $offset;
+                       $cachekey = 'lc' . crc32($base) . '-' . crc32($filter) . '-' .$limit . '-' . $offset;
                        $cookie = $this->connection->writeToCache($cachekey, $cookie);
                }
        }