Fixed a bug -- an extra isset call recently put in was preventing the anti-SPAM filte...
authorbbice <bbice@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 30 Apr 2002 03:14:38 +0000 (03:14 +0000)
committerbbice <bbice@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 30 Apr 2002 03:14:38 +0000 (03:14 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2773 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/filters/filters.php

index 581adb4..3280eb2 100644 (file)
@@ -512,17 +512,15 @@ function filters_spam_check_site($a, $b, $c, $d, &$filters) {
             if ($filters[$key]['dns']) {
                 $filter_revip = $d . '.' . $c . '.' . $b . '.' . $a . '.' .
                                 $filters[$key]['dns'];
-                if (isset($SpamFilters_DNScache[$filter_revip])) {
-                    if (strlen($SpamFilters_DNScache[$filter_revip]['L']) == 0) {
-                        $SpamFilters_DNScache[$filter_revip]['L'] =
-                                        gethostbyname($filter_revip);
-                        $SpamFilters_DNScache[$filter_revip]['T'] =
-                                           time() + $SpamFilters_CacheTTL;
-                    }
-                    if ($SpamFilters_DNScache[$filter_revip]['L'] ==
-                        $filters[$key]['result']) {
-                        return 1;
-                    }
+                if (strlen($SpamFilters_DNScache[$filter_revip]['L']) == 0) {
+                    $SpamFilters_DNScache[$filter_revip]['L'] =
+                                    gethostbyname($filter_revip);
+                    $SpamFilters_DNScache[$filter_revip]['T'] =
+                                       time() + $SpamFilters_CacheTTL;
+                }
+                if ($SpamFilters_DNScache[$filter_revip]['L'] ==
+                    $filters[$key]['result']) {
+                    return 1;
                 }
             }
         }