summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-03 00:39:12 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-03 00:39:12 +0000
commit393c55adff50f5e25e8b8ea41f1b1b7dbf3cc92f (patch)
treed689a63076d62ff74ff610e2b8f503e5ad722f1d
parent4194a9a66ea6ec2716b43de0b14dd072609307cc (diff)
downloadpfsense-393c55adff50f5e25e8b8ea41f1b1b7dbf3cc92f.zip
pfsense-393c55adff50f5e25e8b8ea41f1b1b7dbf3cc92f.tar.gz
Seperate the outputting of /tmp/rules.debug into its own statement
-rw-r--r--etc/inc/filter.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 32a6cc4..f85624c 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -145,7 +145,8 @@ function filter_configure() {
$rules_error = exec_command("/sbin/pfctl -f {$g['tmp_path']}/rules.debug");
$line_error = split("\:", $rules_error);
$line_number = $line_error[1];
- $line_split = split("\n", `/bin/cat /tmp/rules.debug`);
+ $rules_file = `/bin/cat /tmp/rules.debug`;
+ $line_split = split("\n", $rules_file);
if(is_array($line_split))
$line_error = "The line in question reads: " . $line_split[$line_number];
return "There was an error loading the rules.<p><pre>" . $rules_error . "\n" . $line_error . "</pre>";
OpenPOWER on IntegriCloud