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:35:24 -0500 |
commit | 0f026089f65d92328d680443de5f9a90af50115c (patch) | |
tree | 8627aa1370bf89a2c7ead95c05f5310f07584592 /src/usr/local/www/status_logs_filter.php | |
parent | 4ebe5abd329e5e00bd9bc489e36a265ff2bdfd1d (diff) | |
download | pfsense-0f026089f65d92328d680443de5f9a90af50115c.zip pfsense-0f026089f65d92328d680443de5f9a90af50115c.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 5560eee..80236b4 100644 --- a/src/usr/local/www/status_logs_filter.php +++ b/src/usr/local/www/status_logs_filter.php @@ -235,7 +235,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>'?> @@ -244,7 +244,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> |