aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-19 22:27:54 -0800
committerfriendica <info@friendica.com>2014-01-19 22:27:54 -0800
commit82a5eb5d90d99cfd9fc3a319235c2f24cff2de67 (patch)
tree3238f34290a0e2ab1fe204188fc2a2f72d90178b
parent3459c717d4c70b197cce00da49984b1482de8f18 (diff)
downloadvolse-hubzilla-82a5eb5d90d99cfd9fc3a319235c2f24cff2de67.tar.gz
volse-hubzilla-82a5eb5d90d99cfd9fc3a319235c2f24cff2de67.tar.bz2
volse-hubzilla-82a5eb5d90d99cfd9fc3a319235c2f24cff2de67.zip
strip zid= from REQUEST_URI as well as QUERY_STRING - sabre uses both
-rw-r--r--mod/cloud.php3
1 files changed, 3 insertions, 0 deletions
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);