Don't falsely marketh as spam. Fixes #1560

git-svn-id: http://svn.automattic.com/wordpress/trunk@3506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2006-02-09 07:25:25 +00:00
parent 66828c03e9
commit d266a0d226
1 changed files with 2 additions and 0 deletions

View File

@ -643,6 +643,8 @@ function wp_blacklist_check($author, $email, $url, $comment, $user_ip, $user_age
if ( preg_match_all('/&#(\d+);/', $comment . $author . $url, $chars) ) {
foreach ($chars[1] as $char) {
// If it's an encoded char in the normal ASCII set, reject
if ( 38 == $char )
continue; // Unless it's &
if ($char < 128)
return true;
}