From d3532ed7a16395b676f637c5c085ef12a4044d0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Lehrke?= Date: Fri, 29 Oct 2010 08:45:40 +0000 Subject: [PATCH] Fix Apple CardDAV issue --- addressbook/inc/class.addressbook_groupdav.inc.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/addressbook/inc/class.addressbook_groupdav.inc.php b/addressbook/inc/class.addressbook_groupdav.inc.php index 49d63f3a9f..b429a7fb0d 100644 --- a/addressbook/inc/class.addressbook_groupdav.inc.php +++ b/addressbook/inc/class.addressbook_groupdav.inc.php @@ -314,11 +314,8 @@ class addressbook_groupdav extends groupdav_handler $handler = self::_get_handler(); $vCard = htmlspecialchars_decode($options['content']); - if ($this->agent == 'cfnetwork') - { - // Apple Addressbook - $vCard = preg_replace('/item\d\.(ADR|TEL)/', '\1', $vCard); - } + // Fix for Apple Addressbook + $vCard = preg_replace('/item\d\.(ADR|TEL|EMAIL|URL)/', '\1', $vCard); $charset = null; if (!empty($options['content_type'])) {