mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-13 08:00:15 +00:00
Add a hack to work around Lightning/Sunbird bug #463392
This commit is contained in:
parent
737aa5e228
commit
f5ee8da945
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user