diff --git a/htdocs/caldav.php b/htdocs/caldav.php index 53248e89..a44ab79b 100644 --- a/htdocs/caldav.php +++ b/htdocs/caldav.php @@ -113,8 +113,7 @@ switch ( $request->method ) { $request->CoerceContentType(); switch( $request->content_type ) { case 'text/calendar': - /** use original DAViCal 'PUT' code which will be rewritten */ - include('caldav-PUT.php'); + include('caldav-PUT-vcalendar.php'); break; case 'text/vcard': case 'text/x-vcard': diff --git a/inc/caldav-PUT.php b/inc/caldav-PUT-vcalendar.php similarity index 97% rename from inc/caldav-PUT.php rename to inc/caldav-PUT-vcalendar.php index 35a8c648..eca372d5 100644 --- a/inc/caldav-PUT.php +++ b/inc/caldav-PUT-vcalendar.php @@ -92,7 +92,7 @@ if ( $dav_resource->Exists() ) { $put_action_type = ($dav_resource->Exists() ? 'UPDATE' : 'INSERT'); $collection = $dav_resource->GetParentContainer(); -write_resource( $dav_resource->bound_from(), $request->raw_post, $collection, +write_resource( $dav_resource, $request->raw_post, $collection, $session->user_no, $etag, $ic, $put_action_type, true, true ); header(sprintf('ETag: "%s"', $etag) );