mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-12-01 13:24:10 +01:00
Use UID for cache key.
This commit is contained in:
parent
58dff33314
commit
74f8aa9622
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user