Révision ec26979b
Ajouté par jim-p il y a environ 10 ans
etc/inc/filter_log.inc | ||
---|---|---|
225 | 225 |
generates logging rdr rules */ |
226 | 226 |
unset($buffer); |
227 | 227 |
if ($type == "rdr") |
228 |
$_gb = exec("/sbin/pfctl -vvPsn -a \"miniupnpd\" | grep " . escapeshellarg("^@{$rulenum}"), $buffer); |
|
228 |
$_gb = exec("/sbin/pfctl -vvPsn -a \"miniupnpd\" | /usr/bin/egrep " . escapeshellarg("^@{$rulenum}"), $buffer);
|
|
229 | 229 |
else { |
230 | 230 |
if (file_exists("{$g['tmp_path']}/rules.debug")) |
231 | 231 |
$_gb = exec("/sbin/pfctl -vvPnf {$g['tmp_path']}/rules.debug 2>/dev/null | /usr/bin/egrep " . escapeshellarg($lookup_pattern), $buffer); |
232 | 232 |
else |
233 |
$_gb = exec("/sbin/pfctl -vvPsr | grep " . escapeshellarg($lookup_pattern), $buffer); |
|
233 |
$_gb = exec("/sbin/pfctl -vvPsr | /usr/bin/egrep " . escapeshellarg($lookup_pattern), $buffer);
|
|
234 | 234 |
} |
235 | 235 |
if (is_array($buffer)) |
236 | 236 |
return $buffer[0]; |
Formats disponibles : Unified diff
Use egrep here (and full path)