WordPress.org

Make WordPress Core

Changeset 11836


Ignore:
Timestamp:
08/17/2009 01:38:01 AM (9 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r11749 r11836  
    625625function wp_blacklist_check($author, $email, $url, $comment, $user_ip, $user_agent) {
    626626    do_action('wp_blacklist_check', $author, $email, $url, $comment, $user_ip, $user_agent);
    627 
    628     if ( preg_match_all('/&#(\d+);/', $comment . $author . $url, $chars) ) {
    629         foreach ( (array) $chars[1] as $char ) {
    630             // If it's an encoded char in the normal ASCII set, reject
    631             if ( 38 == $char )
    632                 continue; // Unless it's &
    633             if ( $char < 128 )
    634                 return true;
    635         }
    636     }
    637627
    638628    $mod_keys = trim( get_option('blacklist_keys') );
Note: See TracChangeset for help on using the changeset viewer.