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:
parent
66828c03e9
commit
d266a0d226
|
@ -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) ) {
|
if ( preg_match_all('/&#(\d+);/', $comment . $author . $url, $chars) ) {
|
||||||
foreach ($chars[1] as $char) {
|
foreach ($chars[1] as $char) {
|
||||||
// If it's an encoded char in the normal ASCII set, reject
|
// If it's an encoded char in the normal ASCII set, reject
|
||||||
|
if ( 38 == $char )
|
||||||
|
continue; // Unless it's &
|
||||||
if ($char < 128)
|
if ($char < 128)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue