Fix Apple CardDAV issue

This commit is contained in:
Jörg Lehrke 2010-10-29 08:45:40 +00:00
parent ac015ec983
commit d3532ed7a1

View File

@ -314,11 +314,8 @@ class addressbook_groupdav extends groupdav_handler
$handler = self::_get_handler(); $handler = self::_get_handler();
$vCard = htmlspecialchars_decode($options['content']); $vCard = htmlspecialchars_decode($options['content']);
if ($this->agent == 'cfnetwork') // Fix for Apple Addressbook
{ $vCard = preg_replace('/item\d\.(ADR|TEL|EMAIL|URL)/', '\1', $vCard);
// Apple Addressbook
$vCard = preg_replace('/item\d\.(ADR|TEL)/', '\1', $vCard);
}
$charset = null; $charset = null;
if (!empty($options['content_type'])) if (!empty($options['content_type']))
{ {