summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-04-26 06:00:31 +0000
committerDries Buytaert <dries@buytaert.net>2009-04-26 06:00:31 +0000
commit3fe4c4e1c439b7804cabf4cd5fe3b6e5d5bb97d4 (patch)
tree16f4d60fae5d8424e6869d7c3f697df146c28b4d /modules/comment/comment.module
parent7138a5d5d005232f91ae629b4d5baec64d0697fa (diff)
downloadbrdo-3fe4c4e1c439b7804cabf4cd5fe3b6e5d5bb97d4.tar.gz
brdo-3fe4c4e1c439b7804cabf4cd5fe3b6e5d5bb97d4.tar.bz2
- Patch #352880 by dereine, Dave Reid: replace strstre with strpos.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module2
1 files changed, 1 insertions, 1 deletions
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)