diff --git a/modules/spamfilter/spamfilter.model.php b/modules/spamfilter/spamfilter.model.php index c747fb00d..0e2c3823f 100644 --- a/modules/spamfilter/spamfilter.model.php +++ b/modules/spamfilter/spamfilter.model.php @@ -80,11 +80,11 @@ class spamfilterModel extends spamfilter $word_list = $this->getDeniedWordList(); if(!count($word_list)) return new BaseObject(); - $text = utf8_trim(utf8_normalize_spaces(htmlspecialchars_decode(strip_tags($text, '')))); + $text = strtolower(utf8_trim(utf8_normalize_spaces(htmlspecialchars_decode(strip_tags($text, ''))))); foreach ($word_list as $word_item) { $word = $word_item->word; - if (strpos($text, $word) !== false) + if (strpos($text, strtolower($word)) !== false) { $args = new stdClass(); $args->word = $word;