summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_logs_filter_dynamic.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-03-08 03:03:58 +0000
committerErmal Luçi <eri@pfsense.org>2009-03-08 03:03:58 +0000
commitfceb246e684717792d9c00d162eaa8da10d1d423 (patch)
tree8822d96fc101fbea9600d5a144803a26e75d74ab /usr/local/www/diag_logs_filter_dynamic.php
parentb5cb5956b235f63a25f74db74ed96408a5e3cd70 (diff)
downloadpfsense-fceb246e684717792d9c00d162eaa8da10d1d423.zip
pfsense-fceb246e684717792d9c00d162eaa8da10d1d423.tar.gz
Show only the rule that triggered the action when clicking the Action icon.
Diffstat (limited to 'usr/local/www/diag_logs_filter_dynamic.php')
-rwxr-xr-xusr/local/www/diag_logs_filter_dynamic.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/diag_logs_filter_dynamic.php b/usr/local/www/diag_logs_filter_dynamic.php
index e284068..63ac3b2 100755
--- a/usr/local/www/diag_logs_filter_dynamic.php
+++ b/usr/local/www/diag_logs_filter_dynamic.php
@@ -245,7 +245,7 @@ include("head.inc");
$activerow = "";
}
?>
- <div class="log-entry" >
+ <div class="log-entry" <?php echo $activerow; ?>>
<span class="log-action" nowrap><a href="#" onClick="javascript:getURL('diag_logs_filter.php?getrulenum=<?php echo $filterent['rulenum']; ?>', outputrule);">
<?php
if (strstr(strtolower($filterent['act']), "p"))
@@ -423,7 +423,7 @@ function handle_ajax() {
$rulenum = $_GET['getrulenum'];
if($_POST['getrulenum'])
$rulenum = $_POST['getrulenum'];
- $rule = `pfctl -vvsr | grep @{$rulenum}`;
+ $rule = `pfctl -vvsr | grep "@{$rulenum} "`;
echo "The rule that triggered this action is:\n\n{$rule}";
exit;
}
OpenPOWER on IntegriCloud