From 9b09267e0bb5e13244f1c19c76d21020ba22c3ae Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 13 Sep 2016 15:55:55 +0200 Subject: [PATCH] * Calendar/CalDAV: update or removal of (managed) attachments via CalDAV failed --- api/src/CalDAV.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/CalDAV.php b/api/src/CalDAV.php index 12dce4662d..57490a145d 100644 --- a/api/src/CalDAV.php +++ b/api/src/CalDAV.php @@ -1311,7 +1311,7 @@ class CalDAV extends HTTP_WebDAV_Server case 'attachment-remove': case 'attachment-update': - if (empty($_GET['managed-id']) || !($path = self::managed_id2path($_GET['managed-id'], $handler->app, $id))) + if (empty($_GET['managed-id']) || !($path = self::managed_id2path($_GET['managed-id'], $handler->app, $entry['id']))) { self::xml_error(self::mkprop(self::CALDAV, 'valid-managed-id-parameter', '')); return '403 Forbidden';