aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Network.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/Network.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/Network.php')
-rw-r--r--Zotlabs/Module/Network.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Module/Network.php b/Zotlabs/Module/Network.php
index acd12158c..64f9e668c 100644
--- a/Zotlabs/Module/Network.php
+++ b/Zotlabs/Module/Network.php
@@ -15,6 +15,9 @@ class Network extends \Zotlabs\Web\Controller {
notice( t('Permission denied.') . EOL);
return;
}
+
+ if(strpos($_GET['search'], ['@', '!', '?']) == 0)
+ goaway('search' . '?f=&search=' . $_GET['search']);
if(count($_GET) < 2) {
$network_options = get_pconfig(local_channel(),'system','network_page_default');