aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-16 13:26:39 -0800
committerfriendica <info@friendica.com>2014-01-16 13:26:39 -0800
commit359d7980292490da370e49b5f3583d801157b5b7 (patch)
tree79bb5c979e533c2f8b2d35b901704263fe8efc3e
parentbe6a16139c422b95f26080f4d0effecc0ed19515 (diff)
downloadvolse-hubzilla-359d7980292490da370e49b5f3583d801157b5b7.tar.gz
volse-hubzilla-359d7980292490da370e49b5f3583d801157b5b7.tar.bz2
volse-hubzilla-359d7980292490da370e49b5f3583d801157b5b7.zip
kill the ummagumma effect
-rw-r--r--mod/chanview.php2
-rw-r--r--mod/cloud.php6
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);