diff options
-rw-r--r-- | mod/chanview.php | 2 | ||||
-rw-r--r-- | mod/cloud.php | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/mod/chanview.php b/mod/chanview.php index c4942b938..ae22212b9 100644 --- a/mod/chanview.php +++ b/mod/chanview.php @@ -89,7 +89,7 @@ function chanview_content(&$a) { // let somebody over-ride the iframed viewport presentation - if(local_user() && get_pconfig(local_user(),'system','chanview_full')) + if((! local_user()) || (get_pconfig(local_user(),'system','chanview_full'))) goaway($url); $o = replace_macros(get_markup_template('chanview.tpl'),array( diff --git a/mod/cloud.php b/mod/cloud.php index 82b570380..2db7682ef 100644 --- a/mod/cloud.php +++ b/mod/cloud.php @@ -65,6 +65,10 @@ 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']); + + $rootDirectory = new RedDirectory('/',$auth); $server = new DAV\Server($rootDirectory); $lockBackend = new DAV\Locks\Backend\File('store/data/locks'); @@ -82,8 +86,6 @@ 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); |