From 75ef6cc10515e526d22c319bfc329e0c800ead14 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sun, 25 Nov 2007 00:41:28 +1300 Subject: [PATCH] Remove iCal hack to escape displaynames with spaces. iCal 3.0.1 doesn't need this. --- inc/caldav-PROPFIND.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/inc/caldav-PROPFIND.php b/inc/caldav-PROPFIND.php index a366abc5..4efca8b6 100644 --- a/inc/caldav-PROPFIND.php +++ b/inc/caldav-PROPFIND.php @@ -379,10 +379,6 @@ function collection_to_xml( $collection ) { } if ( isset($attribute_list['ALLPROP']) || isset($attribute_list['DISPLAYNAME']) ) { $displayname = ( $collection->dav_displayname == "" ? ucfirst(trim(str_replace("/"," ", $collection->dav_name))) : $collection->dav_displayname ); - if ( preg_match( '/ iCal 3\.0/', $request->user_agent ) ) { - /** FIXME: There is a bug in iCal 3 which disables calendars with a displayname containing spaces */ - $displayname = str_replace( ' ', '_', $displayname ); - } $prop->NewElement("displayname", $displayname ); } if ( isset($attribute_list['ALLPROP']) || isset($attribute_list['GETETAG']) ) {