From 18a40d0c376c07a5686b1f023f53852911138a24 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 16 Jan 2014 01:19:58 -0800 Subject: prevent zid's from reaching the DAV core code. --- mod/cloud.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mod/cloud.php') diff --git a/mod/cloud.php b/mod/cloud.php index 2d8442807..82b570380 100644 --- a/mod/cloud.php +++ b/mod/cloud.php @@ -82,6 +82,9 @@ function cloud_init(&$a) { $auth->setBrowserPlugin($browser); + $_SERVER['QUERY_STRING'] = str_replace(array('?f=','&f='),array('',''),$_SERVER['QUERY_STRING']); + $_SERVER['QUERY_STRING'] = preg_replace('/[\?&]zid=(.*?)([\?&]|$)/ism','',$_SERVER['QUERY_STRING']); + $server->addPlugin($browser); -- cgit v1.2.3