mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 05:35:12 +00:00
strip zid= from REQUEST_URI as well as QUERY_STRING - sabre uses both
This commit is contained in:
parent
3459c717d4
commit
82a5eb5d90
1 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,9 @@ function cloud_init(&$a) {
|
|||
$_SERVER['QUERY_STRING'] = str_replace(array('?f=','&f='),array('',''),$_SERVER['QUERY_STRING']);
|
||||
$_SERVER['QUERY_STRING'] = preg_replace('/[\?&]zid=(.*?)([\?&]|$)/ism','',$_SERVER['QUERY_STRING']);
|
||||
|
||||
$_SERVER['REQUEST_URI'] = str_replace(array('?f=','&f='),array('',''),$_SERVER['REQUEST_URI']);
|
||||
$_SERVER['REQUEST_URI'] = preg_replace('/[\?&]zid=(.*?)([\?&]|$)/ism','',$_SERVER['REQUEST_URI']);
|
||||
|
||||
|
||||
$rootDirectory = new RedDirectory('/',$auth);
|
||||
$server = new DAV\Server($rootDirectory);
|
||||
|
|
Loading…
Reference in a new issue