Changeset 11836
- Timestamp:
- 08/17/2009 01:38:01 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/comment.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r11749 r11836 625 625 function wp_blacklist_check($author, $email, $url, $comment, $user_ip, $user_agent) { 626 626 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, reject631 if ( 38 == $char )632 continue; // Unless it's &633 if ( $char < 128 )634 return true;635 }636 }637 627 638 628 $mod_keys = trim( get_option('blacklist_keys') );
Note: See TracChangeset
for help on using the changeset viewer.