From 9b7f308342e6afa56d412f835e645ddf7da9386a 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 8db8939839..cb162b6ea4 100644 --- a/api/src/CalDAV.php +++ b/api/src/CalDAV.php @@ -1309,7 +1309,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';