aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-10-21 14:23:49 -0700
committerzotlabs <mike@macgirvin.com>2016-10-21 14:23:49 -0700
commitafff751ff193d03014ed28cdd565b833fd1f5bdc (patch)
tree4c90a2d444eb9ae72298af906690ff00c68e2fd2 /Zotlabs
parent222186d5f7b67c3ddb0e358477cf9c291b0c58d6 (diff)
downloadvolse-hubzilla-afff751ff193d03014ed28cdd565b833fd1f5bdc.tar.gz
volse-hubzilla-afff751ff193d03014ed28cdd565b833fd1f5bdc.tar.bz2
volse-hubzilla-afff751ff193d03014ed28cdd565b833fd1f5bdc.zip
partial revert
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Acl.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/Zotlabs/Module/Acl.php b/Zotlabs/Module/Acl.php
index 0215b2125..3444fffa5 100644
--- a/Zotlabs/Module/Acl.php
+++ b/Zotlabs/Module/Acl.php
@@ -354,7 +354,8 @@ class Acl extends \Zotlabs\Web\Controller {
$dirmode = intval(get_config('system','directory_mode'));
$search = ((x($_REQUEST,'search')) ? htmlentities($_REQUEST['search'],ENT_COMPAT,'UTF-8',false) : '');
- if(! $search)
+
+ if((! $search) || mbstrlen($search) < 3)
return array();
$star = false;
@@ -372,8 +373,6 @@ class Acl extends \Zotlabs\Web\Controller {
$address = true;
}
- if(mb_strlen($search) < 3)
- return array();
if(($dirmode == DIRECTORY_MODE_PRIMARY) || ($dirmode == DIRECTORY_MODE_STANDALONE)) {
$url = z_root() . '/dirsearch';