mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
more changes/fixes. New mail handling should be tested by those persons experienced problems with anti spam software and empty To Fields.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3758 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -58,7 +58,16 @@ function clean_words($mode, &$entry, &$stopword_list, &$synonym_list)
|
||||
$entry = str_replace('*', ' ', $entry);
|
||||
|
||||
// 'words' that consist of <3 or >20 characters are removed.
|
||||
$entry = preg_replace('/\b([a-z0-9]{1,2}|[a-z0-9]{21,})\b/',' ', $entry);
|
||||
$entry = explode(' ', $entry);
|
||||
for ($i = 0; $i < sizeof($entry); $i++)
|
||||
{
|
||||
$entry[$i] = trim($entry[$i]);
|
||||
if ((strlen($entry[$i]) < 3) || (strlen($entry[$i]) > 20))
|
||||
{
|
||||
$entry[$i] = '';
|
||||
}
|
||||
}
|
||||
$entry = implode(' ', $entry);
|
||||
}
|
||||
|
||||
if ( !empty($stopword_list) )
|
||||
|
Reference in New Issue
Block a user