aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Channel.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-05-30 22:55:28 +0200
committerMario Vavti <mario@mariovavti.com>2018-05-30 22:55:28 +0200
commit5505f5fa02f35a9c0b64badb1ff3ff2b791d2a41 (patch)
treeb0db2d7637b7461f0d37e55b46df42829fe13d82 /Zotlabs/Module/Channel.php
parent6349a7417f41cd697ba2dea82653911a1abaaf94 (diff)
downloadvolse-hubzilla-5505f5fa02f35a9c0b64badb1ff3ff2b791d2a41.tar.gz
volse-hubzilla-5505f5fa02f35a9c0b64badb1ff3ff2b791d2a41.tar.bz2
volse-hubzilla-5505f5fa02f35a9c0b64badb1ff3ff2b791d2a41.zip
restrict the network/channel navbar search to content and hashtags
Diffstat (limited to 'Zotlabs/Module/Channel.php')
-rw-r--r--Zotlabs/Module/Channel.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php
index dac177c9e..21a6bd122 100644
--- a/Zotlabs/Module/Channel.php
+++ b/Zotlabs/Module/Channel.php
@@ -18,6 +18,9 @@ class Channel extends \Zotlabs\Web\Controller {
function init() {
+ if(strpos($_GET['search'], ['@', '!', '?']) == 0)
+ goaway('search' . '?f=&search=' . $_GET['search']);
+
$which = null;
if(argc() > 1)
$which = argv(1);