aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--Zotlabs/Module/Channel.php3
-rw-r--r--Zotlabs/Module/Network.php3
2 files changed, 6 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);
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');