@@ -29,7 +29,7 @@ |
||
| 29 | 29 | * {@inheritDoc} |
| 30 | 30 | */ |
| 31 | 31 | public function generate($params) |
| 32 | - { |
|
| 32 | + { |
|
| 33 | 33 | // Detect sprintf/substitution tokens so they survive for later sprintf() |
| 34 | 34 | $name = isset($params['name']) ? $params['name'] : ''; |
| 35 | 35 | $u = isset($params['u']) ? $params['u'] : 0; |
@@ -1710,10 +1710,13 @@ |
||
| 1710 | 1710 | if ($result[0] === 127 // Valid Response |
| 1711 | 1711 | && ($result[3] & 3 || $result[3] & 5) // Listed as Suspicious + Harvester || Suspicious + Comment Spammer |
| 1712 | 1712 | && $result[2] >= $modSettings['badbehavior_httpbl_threat'] // Level |
| 1713 | - && $result[1] <= $modSettings['badbehavior_httpbl_maxage']) // Age |
|
| 1713 | + && $result[1] <= $modSettings['badbehavior_httpbl_maxage']) |
|
| 1714 | + { |
|
| 1715 | + // Age |
|
| 1714 | 1716 | { |
| 1715 | 1717 | return 'honey pot'; |
| 1716 | 1718 | } |
| 1719 | + } |
|
| 1717 | 1720 | } |
| 1718 | 1721 | |
| 1719 | 1722 | return false; |