aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/search.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2007-01-28 13:43:46 +0000
committerNils Adermann <naderman@naderman.de>2007-01-28 13:43:46 +0000
commiteaef76a1000597dd36fedba39c5ce1073c169c06 (patch)
tree6210cb09b128401449b2049cf156b37f154c3018 /phpBB/search.php
parentb4568af559bc20e305a37105299bdb0147136136 (diff)
downloadforums-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.php2
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']));
}