Kill entity check in wp_blacklist_check(). Props tellyworth. fixes #9965

git-svn-id: http://svn.automattic.com/wordpress/trunk@11836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-08-17 01:38:01 +00:00
parent 5276c457f4
commit 9eef5564d5
1 changed files with 0 additions and 10 deletions

View File

@ -625,16 +625,6 @@ function get_page_of_comment( $comment_ID, $args = array() ) {
function wp_blacklist_check($author, $email, $url, $comment, $user_ip, $user_agent) {
do_action('wp_blacklist_check', $author, $email, $url, $comment, $user_ip, $user_agent);
if ( preg_match_all('/&#(\d+);/', $comment . $author . $url, $chars) ) {
foreach ( (array) $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;
}
}
$mod_keys = trim( get_option('blacklist_keys') );
if ( '' == $mod_keys )
return false; // If moderation keys are empty