From: Thomas Tanghus Date: Tue, 5 Jun 2012 19:19:46 +0000 (+0200) Subject: Use UID for cache key. X-Git-Tag: v4.5.0beta1~74^2~424^2~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=20aee83d07b67b484ca447b004d91ae188b2ec07;p=nextcloud-server.git Use UID for cache key. --- diff --git a/apps/contacts/ajax/currentphoto.php b/apps/contacts/ajax/currentphoto.php index e4d69eeb878..5f90128f321 100644 --- a/apps/contacts/ajax/currentphoto.php +++ b/apps/contacts/ajax/currentphoto.php @@ -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();