diff --git a/src/usr/local/pkg/pfblockerng/pfblockerng.inc b/src/usr/local/pkg/pfblockerng/pfblockerng.inc index 7fa8c1d2f8bf9ee15728d8d71fe5d04a3ef2bc34..6605e933eee2e19c7b39d83b6d40edd50ca798b5 100644 --- a/src/usr/local/pkg/pfblockerng/pfblockerng.inc +++ b/src/usr/local/pkg/pfblockerng/pfblockerng.inc @@ -4126,52 +4126,64 @@ function pfb_aliastables($mode) { function pfb_filterrules() { global $pfb; - $rule_list = array(); - $rule_list['id'] = array(); - $rule_list['other'] = array(); - $rule_list['int'] = array(); + $rule_list = array(); + $rule_list['id'] = array(); + $rule_list['other'] = array(); + $rule_list['int'] = array(); exec("{$pfb['pfctl']} -vvsr 2>&1", $results); if (!empty($results)) { foreach ($results as $result) { if (substr($result, 0, 1) == '@') { - - $r = explode(')', $result, 2); - - // pfSense > v2.6 uses an 'ridentifier' string - if (strpos($result, 'ridentifier') != FALSE) { - $id = trim(strstr(strstr($r[1], 'ridentifier', FALSE), ' ', FALSE)); - } else { - $id = ltrim(strstr($r[0], '(', FALSE), '('); - } - - // Find rule descriptions and type for pfBlockerNG Tracker IDs - if (strpos($r[1], '