aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Network.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-05-30 23:15:43 +0200
committerMario Vavti <mario@mariovavti.com>2018-05-30 23:15:43 +0200
commit6bfc5aa96c44d3a16962242d0ef02ccfa879ab7b (patch)
tree63a3b5e15a6569086a8648dd35d55e1bfbbe5d12 /Zotlabs/Module/Network.php
parent5505f5fa02f35a9c0b64badb1ff3ff2b791d2a41 (diff)
downloadvolse-hubzilla-6bfc5aa96c44d3a16962242d0ef02ccfa879ab7b.tar.gz
volse-hubzilla-6bfc5aa96c44d3a16962242d0ef02ccfa879ab7b.tar.bz2
volse-hubzilla-6bfc5aa96c44d3a16962242d0ef02ccfa879ab7b.zip
strpos does not work with arrays :(
Diffstat (limited to 'Zotlabs/Module/Network.php')
-rw-r--r--Zotlabs/Module/Network.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Network.php b/Zotlabs/Module/Network.php
index 64f9e668c..0d4deb736 100644
--- a/Zotlabs/Module/Network.php
+++ b/Zotlabs/Module/Network.php
@@ -16,7 +16,7 @@ class Network extends \Zotlabs\Web\Controller {
return;
}
- if(strpos($_GET['search'], ['@', '!', '?']) == 0)
+ if(strpos($_GET['search'], '@') === 0 || strpos($_GET['search'], '!') === 0 || strpos($_GET['search'], '?') === 0)
goaway('search' . '?f=&search=' . $_GET['search']);
if(count($_GET) < 2) {