From 36c5d92fac96615827fb2c0e39751692930fd5bb Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 26 Aug 2015 16:39:10 +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':