From 8e9eaa3410f37bb12a5e226b9e46e14737c8612b Mon Sep 17 00:00:00 2001 From: Florian Schlichting Date: Wed, 16 Dec 2015 00:03:59 +0100 Subject: [PATCH] fix issue #72 - 405 error when adding a new contact from Apple's Contacts As can be seen from the reporter's debug output, the problem is that the POST goes to .../?add-member, whereas davical expects / works with / redirects to ?add_member (note the underscore). So we have davical treat ?add-member the same as ?add_member --- htdocs/caldav.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/caldav.php b/htdocs/caldav.php index 909c968a..78f07310 100644 --- a/htdocs/caldav.php +++ b/htdocs/caldav.php @@ -91,7 +91,7 @@ if ( ! ($request->IsPrincipal() || isset($request->collection) || $request->meth @ob_flush(); exit(0); } } -param_to_global('add_member','.*'); +param_to_global('add_member', '.*', 'add-member'); $add_member = isset($add_member); switch ( $request->method ) {