From 82a5eb5d90d99cfd9fc3a319235c2f24cff2de67 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 19 Jan 2014 22:27:54 -0800 Subject: strip zid= from REQUEST_URI as well as QUERY_STRING - sabre uses both --- mod/cloud.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/cloud.php b/mod/cloud.php index 2db7682ef..616d512cc 100644 --- a/mod/cloud.php +++ b/mod/cloud.php @@ -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); -- cgit v1.2.3