Changeset 1359:3ea918ddb486
Legend:
- Unmodified
- Added
- Removed
-
plugins/antispam/filters/class.dc.filter.iplookup.php
r1179 r1359 41 41 { 42 42 if (!$ip || long2ip(ip2long($ip)) != $ip) { 43 return ;43 return false; 44 44 } 45 46 $match = array();47 45 48 46 $bls = $this->getServers(); 49 47 $bls = preg_split('/\s*,\s*/',$bls); 50 48 51 foreach ($bls as $bl) 52 { 49 foreach ($bls as $bl) { 53 50 if ($this->dnsblLookup($ip,$bl)) { 54 $match[] = $bl;51 return true; 55 52 } 56 53 } 57 54 58 if (!empty($match)) { 59 $status = substr(implode(', ',$match),0,128); 60 return true; 61 } 55 return false; 62 56 } 63 57
Note: See TracChangeset
for help on using the changeset viewer.