summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2017-04-25 16:42:41 +0200
committerGeorg Ehrke <developer@georgehrke.com>2017-04-25 16:42:41 +0200
commitac3cc5211b4b3b5671afa2feefab15303270e25f (patch)
tree492dd24d412c7de1328cc9d7e6c690ee7ee5626c /apps/dav
parentdd424fcb7b26745c6bebc323df282509c28bd563 (diff)
downloadnextcloud-server-ac3cc5211b4b3b5671afa2feefab15303270e25f.tar.gz
nextcloud-server-ac3cc5211b4b3b5671afa2feefab15303270e25f.zip
updateProperties: catch exception when reading calendar data
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/CalDAV/CalDavBackend.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php
index 40155341e51..80dc27c20d0 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);