mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-21 01:54:23 +00:00
Add indication of support for addressbook.
This commit is contained in:
parent
50fca47f06
commit
dfa78960a0
@ -39,10 +39,10 @@ if ( isset($c->override_dav_header) ) {
|
||||
else {
|
||||
/** hack to get around bugzilla #463392 - remove sometime after 2011-02-28 */
|
||||
if ( isset($_SERVER['HTTP_USER_AGENT']) && preg_match( '{ Gecko/(20[01]\d[01]\d[0123]\d)(\d+)? }', $_SERVER['HTTP_USER_AGENT'], $matches ) && $matches[1] < 20100520 ) {
|
||||
$dav = '1, 2, access-control, calendar-access, calendar-schedule, extended-mkcol, calendar-proxy, bind';
|
||||
$dav = '1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol, calendar-proxy, bind, addressbook';
|
||||
}
|
||||
else {
|
||||
$dav = '1, 2, access-control, calendar-access, calendar-schedule, extended-mkcol, calendar-proxy, bind, calendar-auto-schedule';
|
||||
$dav = '1, 2, 3, access-control, calendar-access, calendar-schedule, extended-mkcol, calendar-proxy, bind, addressbook, calendar-auto-schedule';
|
||||
}
|
||||
}
|
||||
header( 'DAV: '.$dav);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user