Add a hack so older Mozilla calendar versions don't see auto-schedule.

This commit is contained in:
Andrew McMillan committed 2010-05-19 23:48:45 +12:00
1 parent f5ee8da945
commit 9002e974fc
40 files changed
+40 -40

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ if ( isset($c->override_dav_header) ) {
}
else {
/** 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 ) {
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';
}
else {