mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-09-01 18:48:17 +00:00
fix ?add_member when PATH_INFO is not set (closes #96, thanks Thomas Zell!)
This commit is contained in:
parent
9a4589123e
commit
1548893229
@ -149,7 +149,7 @@ class CalDAVRequest
|
||||
else {
|
||||
$this->path = '/';
|
||||
if ( isset($_SERVER['REQUEST_URI']) ) {
|
||||
if ( preg_match( '{^(.*?\.php)(.*)$}', $_SERVER['REQUEST_URI'], $matches ) ) {
|
||||
if ( preg_match( '{^(.*?\.php)([^?]*)}', $_SERVER['REQUEST_URI'], $matches ) ) {
|
||||
$this->path = $matches[2];
|
||||
if ( substr($this->path,0,1) != '/' )
|
||||
$this->path = '/'.$this->path;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user