summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-03 00:07:44 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-03 00:07:44 +0000
commitceff1717440b86d9bf4e6155b2106943ad3a8030 (patch)
tree232c86db000f627ae2ac3571beddb108703ae51d /etc/inc
parent833f94fc8afd2549c85e5ba2e47f77b1bcdd7255 (diff)
downloadpfsense-ceff1717440b86d9bf4e6155b2106943ad3a8030.zip
pfsense-ceff1717440b86d9bf4e6155b2106943ad3a8030.tar.gz
* Use additional is_array checking
* Full path to cat
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index c75ee17..32a6cc4 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -145,8 +145,9 @@ 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", `cat /tmp/rules.debug`);
- $line_error = "The line in question reads: " . $line_split[$line_number];
+ $line_split = split("\n", `/bin/cat /tmp/rules.debug`);
+ 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>";
} else {
/* process packager manager custom rules */
OpenPOWER on IntegriCloud