From ac3cc5211b4b3b5671afa2feefab15303270e25f Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Tue, 25 Apr 2017 16:42:41 +0200 Subject: [PATCH] updateProperties: catch exception when reading calendar data Signed-off-by: Georg Ehrke --- apps/dav/lib/CalDAV/CalDavBackend.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php index 40155341e5..80dc27c20d 100644 --- a/apps/dav/lib/CalDAV/CalDavBackend.php +++ b/apps/dav/lib/CalDAV/CalDavBackend.php @@ -1970,7 +1970,12 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription */ public function updateProperties($calendarId, $objectUri, $calendarData) { $objectId = $this->getCalendarObjectId($calendarId, $objectUri); - $vCalendar = $this->readCalendarData($calendarData); + + try { + $vCalendar = $this->readCalendarData($calendarData); + } catch (\Exception $ex) { + return; + } $this->purgeProperties($calendarId, $objectId);