diff options
Diffstat (limited to 'apps/contacts/ajax/currentphoto.php')
-rw-r--r-- | apps/contacts/ajax/currentphoto.php | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |