Dotclear

Changeset 1359:3ea918ddb486


Ignore:
Timestamp:
08/03/13 23:24:26 (11 years ago)
Author:
Pascal Chevrel <pascal.chevrel@…>
Branch:
2.5
Message:

Ticket 1462: Don't check all DNSBL services for spam in isSpam() if we have a spam match on one server, just return true

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/antispam/filters/class.dc.filter.iplookup.php

    r1179 r1359  
    4141     { 
    4242          if (!$ip || long2ip(ip2long($ip)) != $ip) { 
    43                return; 
     43               return false; 
    4444          } 
    45  
    46           $match = array(); 
    4745 
    4846          $bls = $this->getServers(); 
    4947          $bls = preg_split('/\s*,\s*/',$bls); 
    5048 
    51           foreach ($bls as $bl) 
    52           { 
     49          foreach ($bls as $bl) { 
    5350               if ($this->dnsblLookup($ip,$bl)) { 
    54                     $match[] = $bl; 
     51                    return true; 
    5552               } 
    5653          } 
    5754 
    58           if (!empty($match)) { 
    59                $status = substr(implode(', ',$match),0,128); 
    60                return true; 
    61           } 
     55          return false; 
    6256     } 
    6357 
Note: See TracChangeset for help on using the changeset viewer.

Sites map