mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-22 17:16:06 +00:00
Sometimes users set the Free/Busy URL to have a ?, not a /. Let's support that.
This commit is contained in:
parent
b1191bd83c
commit
38788acc5c
@ -44,7 +44,7 @@ if ( isset($fb_user) ) $_SERVER['PATH_INFO'] = '/'.$fb_user.'/';
|
||||
require_once("CalDAVRequest.php");
|
||||
$request = new CalDAVRequest(array("allow_by_email" => 1));
|
||||
$path_match = '^'.$request->path;
|
||||
if ( preg_match( '{^/(\S+@[a-z0-9][a-z0-9-]*[.][a-z0-9.-]+)/?$}i', $request->path, $matches ) ) {
|
||||
if ( preg_match( '{^/(\S+@[a-z0-9][a-z0-9-]*[.][a-z0-9.-]+)[/?]+?$}i', $request->path, $matches ) ) {
|
||||
$principal = new Principal('email',$matches[1]);
|
||||
$path_match = '^'.$principal->dav_name();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user