Revision 89a8ec54
Added by Bill Marquette almost 20 years ago
etc/inc/filter.inc | ||
---|---|---|
160 | 160 |
$rules_file = `/bin/cat /tmp/rules.debug`; |
161 | 161 |
$line_split = split("\n", $rules_file); |
162 | 162 |
if(is_array($line_split)) |
163 |
$line_error = "The line in question reads [{$line_number}]: " . $line_split[$line_number]; |
|
163 |
$line_error = "The line in question reads [{$line_number}]: " . $line_split[$line_number-1];
|
|
164 | 164 |
file_notice("filter_load", "There were error(s) loading the rules: " . $rules_error . " " . $line_error, "Filter Reload", ""); |
165 | 165 |
log_error("There were error(s) loading the rules: " . $rules_error . " - " . $line_error); |
166 | 166 |
return; |
Also available in: Unified diff
Arrays start at 0 not 1