diff --git a/api/src/CalDAV.php b/api/src/CalDAV.php index ea89b2a1ea..686f98ae58 100644 --- a/api/src/CalDAV.php +++ b/api/src/CalDAV.php @@ -1530,7 +1530,7 @@ class CalDAV extends HTTP_WebDAV_Server // POST to the collection URL plus a UID like name component (like for regular PUT) to create new entrys if (isset($_GET['add-member']) || Handler::get_agent() == 'cfnetwork' || // REST API: all but mail have no POST handler, therefore we have to call the PUT handler - !preg_match('#^(/[^/]+)?/mail/$#', $options['path']) && self::isJSON()) + !preg_match('#^(/[^/]+)?/mail(/|$)#', $options['path']) && self::isJSON()) { $_GET['add-member'] = ''; // otherwise we give no Location header return $this->PUT($options, 'POST');