Remove iCal hack to escape displaynames with spaces. iCal 3.0.1 doesn't need this.

This commit is contained in:
Andrew McMillan 2007-11-25 00:41:28 +13:00
parent 8b470ad78c
commit 75ef6cc105

View File

@ -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']) ) {