* 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 e784475ec0
commit 9b7f308342

View File

@ -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';