Bug #8318 ยป pfblocker_inc_patch.diff
/usr/local/pkg/pfblockerng/pfblockerng.inc 2018-02-06 13:38:37.746675000 +0100 | ||
---|---|---|
3006 | 3006 |
case 'match': |
3007 | 3007 |
case 'permit': |
3008 | 3008 |
case 'native': |
3009 |
$results = array_diff($pfb_act, $pfb_exist); |
|
3010 |
// This variable ($f_result) used in next section below. |
|
3011 |
$f_result = implode($results); |
|
3012 |
if (!empty($results)) { |
|
3013 |
foreach ($results as $pfb_result) { |
|
3014 |
$log = "[ Removing List(s) : {$pfb_result} ]\n"; |
|
3015 |
pfb_logger("{$log}", 1); |
|
3016 |
unlink_if_exists("{$pfbfolder}/{$pfb_result}.txt"); |
|
3009 |
if($pfb_exist['adv']) |
|
3010 |
{ |
|
3011 |
$results = array_diff($pfb_act, $pfb_exist); |
|
3012 |
// This variable ($f_result) used in next section below. |
|
3013 |
$f_result = implode($results); |
|
3014 |
if (!empty($results)) { |
|
3015 |
foreach ($results as $pfb_result) { |
|
3016 |
$log = "[ Removing List(s) : {$pfb_result} ]\n"; |
|
3017 |
pfb_logger("{$log}", 1); |
|
3018 |
unlink_if_exists("{$pfbfolder}/{$pfb_result}.txt"); |
|
3019 |
} |
|
3020 |
$pfb['summary'] = $pfb['remove'] = TRUE; |
|
3017 | 3021 |
} |
3018 |
$pfb['summary'] = $pfb['remove'] = TRUE; |
|
3019 | 3022 |
} |
3020 | 3023 |
break; |
3021 | 3024 |
case 'dnsbl': |