From 3fe4c4e1c439b7804cabf4cd5fe3b6e5d5bb97d4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 26 Apr 2009 06:00:31 +0000 Subject: - Patch #352880 by dereine, Dave Reid: replace strstre with strpos. --- modules/comment/comment.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 313b163b7..13e272ecd 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -2221,7 +2221,7 @@ function comment_unpublish_by_keyword_action_submit($form, $form_state) { */ function comment_unpublish_by_keyword_action($comment, $context) { foreach ($context['keywords'] as $keyword) { - if (strstr($comment->comment, $keyword) || strstr($comment->subject, $keyword)) { + if (strpos($comment->comment, $keyword) !== FALSE || strpos($comment->subject, $keyword) !== FALSE) { db_update('comment') ->fields(array('status' => COMMENT_NOT_PUBLISHED,)) ->condition('cid', $comment->cid) -- cgit v1.2.3