strpos does not work with arrays :(
This commit is contained in:
parent
5505f5fa02
commit
6bfc5aa96c
@ -18,7 +18,7 @@ class Channel extends \Zotlabs\Web\Controller {
|
|||||||
|
|
||||||
function init() {
|
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']);
|
goaway('search' . '?f=&search=' . $_GET['search']);
|
||||||
|
|
||||||
$which = null;
|
$which = null;
|
||||||
|
@ -16,7 +16,7 @@ class Network extends \Zotlabs\Web\Controller {
|
|||||||
return;
|
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']);
|
goaway('search' . '?f=&search=' . $_GET['search']);
|
||||||
|
|
||||||
if(count($_GET) < 2) {
|
if(count($_GET) < 2) {
|
||||||
|
Reference in New Issue
Block a user