From 878f71e999a897789892b989cc825621b39e0d67 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 5 Nov 2009 17:07:30 +1300 Subject: [PATCH] Only responde with freebusy to a VFREEBUSY request. --- inc/caldav-POST.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/inc/caldav-POST.php b/inc/caldav-POST.php index 7dc1c6ae..df8c365f 100644 --- a/inc/caldav-POST.php +++ b/inc/caldav-POST.php @@ -213,8 +213,12 @@ $resources = $ical->GetComponents('VTIMEZONE',false); $first = $resources[0]; switch ( $method ) { case 'REQUEST': - dbg_error_log("POST", "Handling iTIP 'REQUEST' method.", $method ); - handle_freebusy_request( $first ); + dbg_error_log('POST', 'Handling iTIP "REQUEST" method with "%s" component.', $method, $first->GetType() ); + if ( $first->GetType() == 'VFREEBUSY' ) + handle_freebusy_request( $first ); + else { + dbg_error_log('POST', 'Ignoring iTIP "REQUEST" with "%s" component.', $first->GetType() ); + } break; case 'CANCEL':