From 154889322949d87e12956092c5c772c6e7b3bf4b Mon Sep 17 00:00:00 2001 From: Florian Schlichting Date: Sun, 4 Dec 2016 01:07:23 +0100 Subject: [PATCH] fix ?add_member when PATH_INFO is not set (closes #96, thanks Thomas Zell!) --- inc/CalDAVRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/CalDAVRequest.php b/inc/CalDAVRequest.php index cf84e74a..846d0940 100644 --- a/inc/CalDAVRequest.php +++ b/inc/CalDAVRequest.php @@ -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;