diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-03 00:39:12 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-03 00:39:12 +0000 |
commit | 393c55adff50f5e25e8b8ea41f1b1b7dbf3cc92f (patch) | |
tree | d689a63076d62ff74ff610e2b8f503e5ad722f1d | |
parent | 4194a9a66ea6ec2716b43de0b14dd072609307cc (diff) | |
download | pfsense-393c55adff50f5e25e8b8ea41f1b1b7dbf3cc92f.zip pfsense-393c55adff50f5e25e8b8ea41f1b1b7dbf3cc92f.tar.gz |
Seperate the outputting of /tmp/rules.debug into its own statement
-rw-r--r-- | etc/inc/filter.inc | 3 |
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>"; |