summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/classes.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-09-19 12:43:44 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-09-19 12:43:44 +0000
commit0b9d1b3be4a25d07c214c174916fcdc81e5ca15d (patch)
treef927250c89e0fd7b9088a12540cfe1e2b48c79d8 /wp-inst/wp-includes/classes.php
parent93053f4309be3c418840659e287852cd66f05748 (diff)
downloadwordpress-mu-0b9d1b3be4a25d07c214c174916fcdc81e5ca15d.tar.gz
wordpress-mu-0b9d1b3be4a25d07c214c174916fcdc81e5ca15d.tar.xz
wordpress-mu-0b9d1b3be4a25d07c214c174916fcdc81e5ca15d.zip
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@341 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-includes/classes.php')
-rw-r--r--wp-inst/wp-includes/classes.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/wp-inst/wp-includes/classes.php b/wp-inst/wp-includes/classes.php
index b8991ff..8e73317 100644
--- a/wp-inst/wp-includes/classes.php
+++ b/wp-inst/wp-includes/classes.php
@@ -724,10 +724,11 @@ class retrospam_mgr {
foreach( $this->comment_list as $comment ) {
if( $comment->approved == 1 ) {
foreach( $this->spam_words as $word ) {
+ $word = trim($word);
if ( empty( $word ) )
continue;
$fulltext = strtolower($comment->email.' '.$comment->url.' '.$comment->ip.' '.$comment->text);
- if( strpos( $fulltext, strtolower(trim($word)) ) != FALSE ) {
+ if( strpos( $fulltext, strtolower($word) ) != FALSE ) {
$this->found_comments[] = $comment->ID;
break;
}