From c4d554149a0067192bc70f78f90a4bc3384195a2 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 26 Aug 2015 16:38:43 +0000 Subject: [PATCH] * CardDAV/Addressbook: fixed not working adding or update of photo --- addressbook/inc/class.addressbook_vcal.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_vcal.inc.php b/addressbook/inc/class.addressbook_vcal.inc.php index 865acaf00a..05140a3f01 100644 --- a/addressbook/inc/class.addressbook_vcal.inc.php +++ b/addressbook/inc/class.addressbook_vcal.inc.php @@ -953,7 +953,8 @@ class addressbook_vcal extends addressbook_bo break; case 'jpegphoto': - $contact[$fieldName] = $vcardValues[$vcardKey]['value']; + $contact[$fieldName] = $vcardValues[$vcardKey]['params']['ENCODING'] == 'b' ? + base64_decode($vcardValues[$vcardKey]['value']): $vcardValues[$vcardKey]['value']; break; case 'note':