]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use UID for cache key.
authorThomas Tanghus <thomas@tanghus.net>
Tue, 5 Jun 2012 19:19:46 +0000 (21:19 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Tue, 5 Jun 2012 19:20:10 +0000 (21:20 +0200)
apps/contacts/ajax/currentphoto.php

index e4d69eeb878eeeca46cd7aebf6df78ce877bbf0e..5f90128f3210a698b705a8ffafb56104020169af 100644 (file)
@@ -44,7 +44,7 @@ if( is_null($contact)) {
                $image->loadFromBase64($contact->getAsString('LOGO'));
        }
        if($image->valid()) {
-               $tmpkey = 'contact-photo-'.md5($contact->getAsString('FN'));
+               $tmpkey = 'contact-photo-'.$contact->getAsString('UID');
                if(OC_Cache::set($tmpkey, $image->data(), 600)) {
                        OCP\JSON::success(array('data' => array('id'=>$_GET['id'], 'tmp'=>$tmpkey)));
                        exit();