diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-05-30 23:15:43 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-05-30 23:15:43 +0200 |
commit | 6bfc5aa96c44d3a16962242d0ef02ccfa879ab7b (patch) | |
tree | 63a3b5e15a6569086a8648dd35d55e1bfbbe5d12 /Zotlabs/Module | |
parent | 5505f5fa02f35a9c0b64badb1ff3ff2b791d2a41 (diff) | |
download | volse-hubzilla-6bfc5aa96c44d3a16962242d0ef02ccfa879ab7b.tar.gz volse-hubzilla-6bfc5aa96c44d3a16962242d0ef02ccfa879ab7b.tar.bz2 volse-hubzilla-6bfc5aa96c44d3a16962242d0ef02ccfa879ab7b.zip |
strpos does not work with arrays :(
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Channel.php | 2 | ||||
-rw-r--r-- | Zotlabs/Module/Network.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php index 21a6bd122..c2e464470 100644 --- a/Zotlabs/Module/Channel.php +++ b/Zotlabs/Module/Channel.php @@ -18,7 +18,7 @@ class Channel extends \Zotlabs\Web\Controller { function init() { - if(strpos($_GET['search'], ['@', '!', '?']) == 0) + if(strpos($_GET['search'], '@') === 0 || strpos($_GET['search'], '!') === 0 || strpos($_GET['search'], '?') === 0) goaway('search' . '?f=&search=' . $_GET['search']); $which = null; 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) { |