summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-11-02 21:06:48 +0545
committerPhil Davis <phil.davis@inf.org>2015-11-02 21:06:48 +0545
commit5196767911b23ce49a3169bde9a46c237157a963 (patch)
treeccc6b92628582ae27ac8818464106e491e14e76c /etc
parent5897e4e397213cc25725e126989c31b8c67575b9 (diff)
downloadpfsense-5196767911b23ce49a3169bde9a46c237157a963.zip
pfsense-5196767911b23ce49a3169bde9a46c237157a963.tar.gz
Fix firewall log dynamic rule lookup
for rows that are dynamically added as time goes by.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter_log.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/filter_log.inc b/etc/inc/filter_log.inc
index 46c9b13..6316bff 100644
--- a/etc/inc/filter_log.inc
+++ b/etc/inc/filter_log.inc
@@ -401,12 +401,12 @@ 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 border='0' src='" . find_action_image($log_row['act']) . "' alt={$log_row['act']} title={$log_row['act']} />";
+ $img = "<img border='0' src='" . find_action_image($log_row['act']) . "' alt={$log_row['act']}/{$log_row['tracker']} title={$log_row['act']}/{$log_row['tracker']} />";
if($row_time > $lastsawtime) {
if ($log_row['proto'] == "TCP")
$log_row['proto'] .= ":{$log_row['tcpflags']}";
- $img = "<a href=\"#\" onClick=\"javascript:getURL('diag_logs_filter.php?getrulenum={$log_row['rulenum']},{$log_row['rulenum']}', outputrule);\">{$img}</a>";
+ $img = "<a href=\"#\" onClick=\"javascript:getURL('diag_logs_filter.php?getrulenum={$log_row['rulenum']},{$log_row['tracker']},{$log_row['act']}', outputrule);\">{$img}</a>";
$new_rules .= "{$img}||{$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";
}
}
OpenPOWER on IntegriCloud