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
This commit is contained in:
Florian Schlichting 2015-12-16 00:03:59 +01:00
parent 38673060a1
commit 8e9eaa3410

View File

@ -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 ) {