forked from extern/egroupware
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:
parent
f98569ee85
commit
16cb2097fc
@ -804,6 +804,11 @@ class Horde_iCalendar {
|
|||||||
$attr_string = "$name$params_str:$value";
|
$attr_string = "$name$params_str:$value";
|
||||||
|
|
||||||
$result .= $this->_foldLine($attr_string) . $this->_newline;
|
$result .= $this->_foldLine($attr_string) . $this->_newline;
|
||||||
|
if (!empty($params['ENCODING']) && $params['ENCODING'] == 'BASE64' &&
|
||||||
|
strlen(trim($value)) > 0)
|
||||||
|
{
|
||||||
|
$result .= $this->_newline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user