mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-28 18:16:05 +00:00
Remove iCal hack to escape displaynames with spaces. iCal 3.0.1 doesn't need this.
This commit is contained in:
parent
8b470ad78c
commit
75ef6cc105
@ -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']) ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user