Don't falsely marketh as spam. Fixes #1560

git-svn-id: https://develop.svn.wordpress.org/trunk@3506 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2006-02-09 07:25:25 +00:00
parent 6cb2813239
commit 0628227ea0
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;
}