From 56b3dd9ca9d1f1747added17e4e78fbafb9c8abc Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Mon, 2 Nov 2015 22:27:09 +0545 Subject: [PATCH] Fix firewall log dynamic rule lookup master for rows that are dynamically added as time goes by. See https://github.com/pfsense/pfsense/pull/2014 for version for RELENG_2_2. This is theoretically the fix. But due to other issues that mean dynamic updates to not happen at all in 2.3-ALPHA, I haven't been able to actually test it just yet. --- src/etc/inc/filter_log.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/inc/filter_log.inc b/src/etc/inc/filter_log.inc index 96cecfa1f9..c20e5a0646 100644 --- a/src/etc/inc/filter_log.inc +++ b/src/etc/inc/filter_log.inc @@ -445,13 +445,13 @@ function handle_ajax($nentries, $tail = 50) { $filterlog = isset($config['syslog']['reverse']) ? array_reverse($filterlog) : $filterlog; foreach ($filterlog as $log_row) { $row_time = strtotime($log_row['time']); - $img = '"'; + $img = '"'; if ($row_time > $lastsawtime) { if ($log_row['proto'] == "TCP") { $log_row['proto'] .= ":{$log_row['tcpflags']}"; } - $btn = "" . gettext("Block") . " "; + $btn = "" . gettext("Block") . " "; $new_rules .= "{$btn}||{$log_row['time']}||{$log_row['interface']}||{$log_row['srcip']}||{$log_row['srcport']}||{$log_row['dstip']}||{$log_row['dstport']}||{$log_row['proto']}||{$log_row['version']}||" . time() . "||\n"; } }