summaryrefslogtreecommitdiffstats
path: root/etc/inc/filter_log.inc
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2010-02-15 15:07:49 -0500
committerjim-p <jim@pingle.org>2010-02-15 15:09:12 -0500
commit24f2fa1d6e7e194c82f45984ea42773ec595311c (patch)
treea83875bd36b76d046a70844bc6614f069a43c921 /etc/inc/filter_log.inc
parentdcdf955c107fb7d077d462d71c55bccf1ca6c80c (diff)
downloadpfsense-24f2fa1d6e7e194c82f45984ea42773ec595311c.zip
pfsense-24f2fa1d6e7e194c82f45984ea42773ec595311c.tar.gz
Fix bug where the last line of the filter log wasn't displayed in WebGUI.
Diffstat (limited to 'etc/inc/filter_log.inc')
-rw-r--r--etc/inc/filter_log.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/filter_log.inc b/etc/inc/filter_log.inc
index fc40539..3005d8c 100644
--- a/etc/inc/filter_log.inc
+++ b/etc/inc/filter_log.inc
@@ -88,6 +88,8 @@ function match_filter_line($flent, $filtertext = "") {
function collapse_filter_lines($logarr) {
$lastline = "";
$collapsed = array();
+ /* Stick a blank entry at the end to be sure we always fully parse the last entry */
+ $logarr[] = "";
foreach ($logarr as $logent) {
$line_split = "";
preg_match("/.*\spf:\s(.*)/", $logent, $line_split);
OpenPOWER on IntegriCloud