From f5ee8da945b49d194e4673065bc9b6597e0d8b1f Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Mon, 17 May 2010 22:50:40 +1200 Subject: [PATCH] Add a hack to work around Lightning/Sunbird bug #463392 --- htdocs/caldav.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/htdocs/caldav.php b/htdocs/caldav.php index a547b42b..81fbefe3 100644 --- a/htdocs/caldav.php +++ b/htdocs/caldav.php @@ -37,7 +37,13 @@ if ( isset($c->override_dav_header) ) { $dav = $c->override_dav_header; } else { - $dav = '1, 2, access-control, calendar-access, calendar-schedule, extended-mkcol, calendar-proxy, bind, calendar-auto-schedule'; + /** hack to get around bugzilla #463392 - remove sometime after 2011-02-28 */ + if ( preg_match( '{ Gecko/(20[01]\d[01]\d[0123]\d)(\d+)? }', $_REQUEST['USER_AGENT'], $matches ) && $matches[1] < 20100520 ) { + $dav = '1, 2, access-control, calendar-access, calendar-schedule, extended-mkcol, calendar-proxy, bind'; + } + else { + $dav = '1, 2, access-control, calendar-access, calendar-schedule, extended-mkcol, calendar-proxy, bind, calendar-auto-schedule'; + } } header( 'DAV: '.$dav);