aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-03-22 13:55:23 +0100
committerMario Vavti <mario@mariovavti.com>2018-03-23 10:37:10 +0100
commitae9e64cedfdf802d7234b2744bad375f4c804d3d (patch)
treea925db8b7b9ea69fa51066f58fb2d03b171cb787
parente6d62f6e05d1571d587bd2b315cdacc35759b083 (diff)
downloadvolse-hubzilla-ae9e64cedfdf802d7234b2744bad375f4c804d3d.tar.gz
volse-hubzilla-ae9e64cedfdf802d7234b2744bad375f4c804d3d.tar.bz2
volse-hubzilla-ae9e64cedfdf802d7234b2744bad375f4c804d3d.zip
prevent reload loop if somebody lands on /ochannel (without channel_address and without trailing slash)
-rw-r--r--Zotlabs/Module/Ochannel.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Module/Ochannel.php b/Zotlabs/Module/Ochannel.php
index 3b187d2a6..508be1408 100644
--- a/Zotlabs/Module/Ochannel.php
+++ b/Zotlabs/Module/Ochannel.php
@@ -56,6 +56,9 @@ class Ochannel extends \Zotlabs\Web\Controller {
function get($update = 0, $load = false) {
+ if(argc() < 2)
+ return;
+
if($load)
$_SESSION['loadtime'] = datetime_convert();