diff options
author | jim-p <jimp@pfsense.org> | 2017-02-07 13:35:24 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2017-02-07 13:37:07 -0500 |
commit | f0cf40f964f2a559ddcf495f492bd9d38f924512 (patch) | |
tree | 2fe9a307698ae60f66aa270620550cf09370f93a /src/usr/local/www/status_logs_filter.php | |
parent | ed7bfaa4b99fc6d4c4f3b2be1dfd738f3cc8e16b (diff) | |
download | pfsense-f0cf40f964f2a559ddcf495f492bd9d38f924512.zip pfsense-f0cf40f964f2a559ddcf495f492bd9d38f924512.tar.gz |
Convert easyrule.php to use a confirmation landing page so that the parameters can be submitted via POST. Also, remove the JavaScript confirmation box since it is now redundant. Fixes #7228
The confirmation page displays the submitted parameters for an extra user sanity check. Also fixed a bunch of page formatting issues that were not apparent because users rarely if ever saw output from the page.
Diffstat (limited to 'src/usr/local/www/status_logs_filter.php')
-rw-r--r-- | src/usr/local/www/status_logs_filter.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/status_logs_filter.php b/src/usr/local/www/status_logs_filter.php index 18b048c..f482e78 100644 --- a/src/usr/local/www/status_logs_filter.php +++ b/src/usr/local/www/status_logs_filter.php @@ -267,7 +267,7 @@ if (!$rawfilter) { <i class="fa fa-info icon-pointer icon-primary" onclick="javascript:resolve_with_ajax('<?="{$rawsrcip}"; ?>');" title="<?=gettext("Click to resolve")?>"> </i> - <a class="fa fa-minus-square-o icon-pointer icon-primary" href="easyrule.php?<?="action=block&int={$int}&src={$filterent['srcip']}&ipproto={$ipproto}"; ?>" title="<?=gettext("Easy Rule: Add to Block List")?>" onclick="return confirm('<?=gettext("Confirmation required to add this BLOCK rule.")?>')"> + <a class="fa fa-minus-square-o icon-pointer icon-primary" href="easyrule.php?<?="action=block&int={$int}&src={$filterent['srcip']}&ipproto={$ipproto}"; ?>" title="<?=gettext("Easy Rule: Add to Block List")?>"> </a> <?=$srcstr . '<span class="RESOLVE-' . $src_htmlclass . '"></span>'?> @@ -276,7 +276,7 @@ if (!$rawfilter) { <i class="fa fa-info icon-pointer icon-primary; ICON-<?= $dst_htmlclass; ?>" onclick="javascript:resolve_with_ajax('<?="{$rawdstip}"; ?>');" title="<?=gettext("Click to resolve")?>"> </i> - <a class="fa fa-plus-square-o icon-pointer icon-primary" href="easyrule.php?<?="action=pass&int={$int}&proto={$proto}&src={$filterent['srcip']}&dst={$filterent['dstip']}&dstport={$filterent['dstport']}&ipproto={$ipproto}"; ?>" title="<?=gettext("Easy Rule: Pass this traffic")?>" onclick="return confirm('<?=gettext("Confirmation required to add this PASS rule.")?>')"> + <a class="fa fa-plus-square-o icon-pointer icon-primary" href="easyrule.php?<?="action=pass&int={$int}&proto={$proto}&src={$filterent['srcip']}&dst={$filterent['dstip']}&dstport={$filterent['dstport']}&ipproto={$ipproto}"; ?>" title="<?=gettext("Easy Rule: Pass this traffic")?>"> </a> <?=$dststr . '<span class="RESOLVE-' . $dst_htmlclass . '"></span>'?> </td> |