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
This commit is contained in:
Klaus Leithoff 2008-08-04 08:18:49 +00:00
parent f98569ee85
commit 16cb2097fc

View File

@ -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;
}
}
}