mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Treat line_split as an array
This commit is contained in:
parent
ac55a7091e
commit
833f94fc8a
@ -146,7 +146,7 @@ function filter_configure() {
|
||||
$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_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 */
|
||||
@ -1397,7 +1397,7 @@ EOD;
|
||||
/* OS signatures */
|
||||
if (($rule['protocol'] == "tcp") && ($rule['os'] <> ""))
|
||||
$line .= "os {$rule['os']} ";
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* destination address */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user