]> git.mjollnir.org Git - s9y.git/commitdiff
be case insensitive
authorgarvinhicking <garvinhicking>
Fri, 9 Jun 2006 08:07:43 +0000 (08:07 +0000)
committergarvinhicking <garvinhicking>
Fri, 9 Jun 2006 08:07:43 +0000 (08:07 +0000)
plugins/serendipity_event_spamblock/serendipity_event_spamblock.php

index f23ac5c32c696202d1af357a487e6c5f1f85849c..dbafb0ec63fdc5dc13715f892951bc0cfc524bf9 100644 (file)
@@ -706,7 +706,7 @@ var $filter_defaults;
                                     if (empty($filter_author)) {
                                         continue;
                                     }
-                                    if (preg_match('@' . $filter_author . '@', $addData['name'])) {
+                                    if (preg_match('@' . $filter_author . '@i', $addData['name'])) {
                                         if ($filter_type == 'moderate') {
                                             $this->log($logfile, $eventData['id'], 'MODERATE', PLUGIN_EVENT_SPAMBLOCK_FILTER_AUTHORS, $addData);
                                             $eventData['moderate_comments'] = true;
@@ -729,7 +729,7 @@ var $filter_defaults;
                                     if (empty($filter_url)) {
                                         continue;
                                     }
-                                    if (preg_match('@' . $filter_url . '@', $addData['url'])) {
+                                    if (preg_match('@' . $filter_url . '@i', $addData['url'])) {
                                         if ($filter_type == 'moderate') {
                                             $this->log($logfile, $eventData['id'], 'MODERATE', PLUGIN_EVENT_SPAMBLOCK_FILTER_URLS, $addData);
                                             $eventData['moderate_comments'] = true;
@@ -752,7 +752,7 @@ var $filter_defaults;
                                     if (empty($filter_body)) {
                                         continue;
                                     }
-                                    if (preg_match('@' . $filter_body . '@', $addData['comment'])) {
+                                    if (preg_match('@' . $filter_body . '@i', $addData['comment'])) {
                                         if ($filter_type == 'moderate') {
                                             $this->log($logfile, $eventData['id'], 'MODERATE', PLUGIN_EVENT_SPAMBLOCK_FILTER_WORDS, $addData);
                                             $eventData['moderate_comments'] = true;