From eaef76a1000597dd36fedba39c5ce1073c169c06 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Sun, 28 Jan 2007 13:43:46 +0000 Subject: - ignore too short/too long search words [Bug #7438] git-svn-id: file:///svn/phpbb/trunk@6944 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/search.php') 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'])); } -- cgit v1.2.1