mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
fix regular expression stopping Mail REST API when trying to send mails
This commit is contained in:
parent
ad233cbfcb
commit
ae32afa232
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user