summaryrefslogtreecommitdiffstats
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
parentb5cb5956b235f63a25f74db74ed96408a5e3cd70 (diff)
downloadpfsense-fceb246e684717792d9c00d162eaa8da10d1d423.zip
pfsense-fceb246e684717792d9c00d162eaa8da10d1d423.tar.gz
Show only the rule that triggered the action when clicking the Action icon.
-rwxr-xr-xusr/local/www/diag_logs_filter.php2
-rwxr-xr-xusr/local/www/diag_logs_filter_dynamic.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php
index f5e279f..ea5c2cd 100755
--- a/usr/local/www/diag_logs_filter.php
+++ b/usr/local/www/diag_logs_filter.php
@@ -44,7 +44,7 @@ if($_GET['getrulenum'] or $_POST['getrulenum']) {
$rulenum = escapeshellarg($_GET['getrulenum']);
if($_POST['getrulenum'])
$rulenum = escapeshellarg($_POST['getrulenum']);
- $rule = `pfctl -vvsr | grep @{$rulenum}`;
+ $rule = `pfctl -vvsr | grep "@{$rulenum} "`;
echo "The rule that triggered this action is:\n\n{$rule}";
exit;
}
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