diff options
author | Nils Adermann <naderman@naderman.de> | 2007-01-28 13:43:46 +0000 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2007-01-28 13:43:46 +0000 |
commit | eaef76a1000597dd36fedba39c5ce1073c169c06 (patch) | |
tree | 6210cb09b128401449b2049cf156b37f154c3018 /phpBB/search.php | |
parent | b4568af559bc20e305a37105299bdb0147136136 (diff) | |
download | forums-eaef76a1000597dd36fedba39c5ce1073c169c06.tar forums-eaef76a1000597dd36fedba39c5ce1073c169c06.tar.gz forums-eaef76a1000597dd36fedba39c5ce1073c169c06.tar.bz2 forums-eaef76a1000597dd36fedba39c5ce1073c169c06.tar.xz forums-eaef76a1000597dd36fedba39c5ce1073c169c06.zip |
- ignore too short/too long search words [Bug #7438]
git-svn-id: file:///svn/phpbb/trunk@6944 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/search.php')
-rw-r--r-- | phpBB/search.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/search.php b/phpBB/search.php index e574600e7b..3e4159025a 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -95,7 +95,7 @@ if ($keywords || $author || $author_id || $search_id || $submit) } else if ($author) { - if ((strpos($author, '*') !== false) && (str_replace(array('*', '%'), '', $author) < $config['min_search_author_chars'])) + if ((strpos($author, '*') !== false) && (utf8_strlen(str_replace(array('*', '%'), '', $author)) < $config['min_search_author_chars'])) { trigger_error(sprintf($user->lang['TOO_FEW_AUTHOR_CHARS'], $config['min_search_author_chars'])); } |