Ticket #37208: 37208.diff
File 37208.diff, 871 bytes (added by , 7 years ago) |
---|
-
wp-includes/comment.php
1055 1055 $mod_keys = trim( get_option('blacklist_keys') ); 1056 1056 if ( '' == $mod_keys ) 1057 1057 return false; // If moderation keys are empty 1058 1059 // Ensure that users can't use HTML tags to break up their words to bypass the blacklist. 1060 $comment_without_html = wp_kses( $comment, array() ); 1061 1058 1062 $words = explode("\n", $mod_keys ); 1059 1063 1060 1064 foreach ( (array) $words as $word ) { … … 1072 1076 preg_match($pattern, $author) 1073 1077 || preg_match($pattern, $email) 1074 1078 || preg_match($pattern, $url) 1075 || preg_match($pattern, $comment )1079 || preg_match($pattern, $comment_without_html) 1076 1080 || preg_match($pattern, $user_ip) 1077 1081 || preg_match($pattern, $user_agent) 1078 1082 )