From d266a0d2264c39a628ed8b3631acd96b3e3611d5 Mon Sep 17 00:00:00 2001 From: matt Date: Thu, 9 Feb 2006 07:25:25 +0000 Subject: [PATCH] Don't falsely marketh as spam. Fixes #1560 git-svn-id: http://svn.automattic.com/wordpress/trunk@3506 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions-post.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/functions-post.php b/wp-includes/functions-post.php index 842980f6c..e9319ba96 100644 --- a/wp-includes/functions-post.php +++ b/wp-includes/functions-post.php @@ -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; }