From 74f8aa9622b370c399e3d60cd6decdb7c6dca182 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Tue, 5 Jun 2012 21:19:46 +0200 Subject: [PATCH] Use UID for cache key. --- ajax/currentphoto.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ajax/currentphoto.php b/ajax/currentphoto.php index e4d69eeb..5f90128f 100644 --- a/ajax/currentphoto.php +++ b/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();