* Calendar/CalDAV: update or removal of (managed) attachments via CalDAV failed

This commit is contained in:
Ralf Becker 2016-09-13 15:55:55 +02:00
parent 4bf26a6c52
commit 9b09267e0b

View File

@ -1311,7 +1311,7 @@ class CalDAV extends HTTP_WebDAV_Server
case 'attachment-remove': case 'attachment-remove':
case 'attachment-update': 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', '')); self::xml_error(self::mkprop(self::CALDAV, 'valid-managed-id-parameter', ''));
return '403 Forbidden'; return '403 Forbidden';