From 5cb14e716ec80bbdc29f04aef08fa02c7f04a67b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Lehrke?= <jlehrke@noc.de>
Date: Mon, 28 Jun 2010 17:34:57 +0000
Subject: [PATCH] Fix CalDAV delete event issue

---
 calendar/inc/class.calendar_groupdav.inc.php | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/calendar/inc/class.calendar_groupdav.inc.php b/calendar/inc/class.calendar_groupdav.inc.php
index 18dfcc61d4..759128a234 100644
--- a/calendar/inc/class.calendar_groupdav.inc.php
+++ b/calendar/inc/class.calendar_groupdav.inc.php
@@ -591,8 +591,11 @@ error_log(__METHOD__."($path,,".array2string($start).") filter=".array2string($f
 	 */
 	function post(&$options,$id,$user=null)
 	{
-		$status = $this->put($options,$id,$user);
-		// error_log("CalDAV POST: $status" . print_r($options, true));
+		if (preg_match('/^METHOD:PUBLISH(\r\n|\r|\n)/im', $options['content']))
+		{
+			$status = $this->put($options,$id,$user);
+			// error_log("CalDAV POST: $status" . print_r($options, true));
+		}
 		return true;
 	}