From 5d2123f3856401486e60678b7f7eebed9d7b1e6f Mon Sep 17 00:00:00 2001 From: Rob Ostensen Date: Tue, 9 Mar 2010 17:49:34 -0600 Subject: [PATCH] oops, don't write to resources we don't have privileges to --- inc/caldav-PUT-functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/caldav-PUT-functions.php b/inc/caldav-PUT-functions.php index 9a0aeb2b..46519200 100644 --- a/inc/caldav-PUT-functions.php +++ b/inc/caldav-PUT-functions.php @@ -257,7 +257,8 @@ function handle_schedule_reply ( $ical ) { $reply->NSElement( $privnodes[1], 'schedule-deliver-reply' ); $xml = new XMLElement( 'need-privileges', new XMLElement( 'resource', $privnodes) ); $xmldoc = $reply->Render('error',$xml); - $request->DoResponse( 403, $xmldoc, 'text/xml; charset="utf-8"' ); + $request->DoResponse( 403, $xmldoc, 'text/xml; charset="utf-8"' ); + continue; } $ncal = new iCalComponent ( );