From 16cb2097fcf34c08c984eb3f16ba716bd18cf1ef Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 4 Aug 2008 08:18:49 +0000 Subject: [PATCH] Some Devices (Nokia S60) ignore the entire vcard, if the vcard contains formal error. This breaks sync for single contacts from egw to client. example: photo in addressbook without blank line after the property value. This way the devices are not compliant with RFC2426 (Vcard Version 3) 5. Differences From vCard v2.1 [...] . Inline binary content must be "B" encoded and folded. A blank line after the encoded binary content is no longer required. [...] This was pointed out by Philip Herbert. Carl Knauber Holding GmbH & Co KG --- phpgwapi/inc/horde/Horde/iCalendar.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpgwapi/inc/horde/Horde/iCalendar.php b/phpgwapi/inc/horde/Horde/iCalendar.php index 93715393d0..a0d1be6218 100644 --- a/phpgwapi/inc/horde/Horde/iCalendar.php +++ b/phpgwapi/inc/horde/Horde/iCalendar.php @@ -804,6 +804,11 @@ class Horde_iCalendar { $attr_string = "$name$params_str:$value"; $result .= $this->_foldLine($attr_string) . $this->_newline; + if (!empty($params['ENCODING']) && $params['ENCODING'] == 'BASE64' && + strlen(trim($value)) > 0) + { + $result .= $this->_newline; + } } }