aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Channel.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-11-02 17:52:19 +0100
committerMario Vavti <mario@mariovavti.com>2022-11-02 17:52:19 +0100
commit331126916239b1ecad48faa24a8e961cffa6e69f (patch)
treea993090509b4ef014dc25d26cd393690332012ab /Zotlabs/Module/Channel.php
parentb2172d39f6da5c67de618d2b6d28a3a77d071c97 (diff)
downloadvolse-hubzilla-331126916239b1ecad48faa24a8e961cffa6e69f.tar.gz
volse-hubzilla-331126916239b1ecad48faa24a8e961cffa6e69f.tar.bz2
volse-hubzilla-331126916239b1ecad48faa24a8e961cffa6e69f.zip
throw a 404 if we could not determine which channel to load
Diffstat (limited to 'Zotlabs/Module/Channel.php')
-rw-r--r--Zotlabs/Module/Channel.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php
index 0874551d6..d3d72ca10 100644
--- a/Zotlabs/Module/Channel.php
+++ b/Zotlabs/Module/Channel.php
@@ -31,8 +31,10 @@ class Channel extends Controller {
goaway(z_root() . '/search?f=&search=' . $_GET['search']);
$which = null;
- if (argc() > 1)
+ if (argc() > 1) {
$which = argv(1);
+ }
+
if (!$which) {
if (local_channel()) {
$channel = App::get_channel();
@@ -40,9 +42,9 @@ class Channel extends Controller {
$which = $channel['channel_address'];
}
}
+
if (!$which) {
- notice(t('You must be logged in to see this page.') . EOL);
- return;
+ http_status_exit(404, 'Not found');
}
$profile = 0;