summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_nat_out_edit.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-04-12 10:09:30 -0400
committerStephen Beaver <sbeaver@netgate.com>2016-04-12 10:10:11 -0400
commit79b02c77d26bebc506227c20ffb424dde7a196e0 (patch)
tree74a7b1102b0b14934d8228cb45a6a33d070ea99a /src/usr/local/www/firewall_nat_out_edit.php
parent8b1323aa35e0033cdf692804bc32ee6cce1319a4 (diff)
downloadpfsense-79b02c77d26bebc506227c20ffb424dde7a196e0.zip
pfsense-79b02c77d26bebc506227c20ffb424dde7a196e0.tar.gz
Fixed #6112
by adding isset() to checkbox value
Diffstat (limited to 'src/usr/local/www/firewall_nat_out_edit.php')
-rw-r--r--src/usr/local/www/firewall_nat_out_edit.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/usr/local/www/firewall_nat_out_edit.php b/src/usr/local/www/firewall_nat_out_edit.php
index a19bde7..329e1fc 100644
--- a/src/usr/local/www/firewall_nat_out_edit.php
+++ b/src/usr/local/www/firewall_nat_out_edit.php
@@ -81,11 +81,13 @@ $a_out = &$config['nat']['outbound']['rule'];
if (!is_array($config['aliases']['alias'])) {
$config['aliases']['alias'] = array();
}
+
$a_aliases = &$config['aliases']['alias'];
if (is_numericint($_GET['id'])) {
$id = $_GET['id'];
}
+
if (isset($_POST['id']) && is_numericint($_POST['id'])) {
$id = $_POST['id'];
}
@@ -93,6 +95,7 @@ if (isset($_POST['id']) && is_numericint($_POST['id'])) {
if (is_numericint($_GET['after']) || $_GET['after'] == "-1") {
$after = $_GET['after'];
}
+
if (isset($_POST['after']) && (is_numericint($_POST['after']) || $_POST['after'] == "-1")) {
$after = $_POST['after'];
}
@@ -454,7 +457,7 @@ $section->addInput(new Form_Checkbox(
'nonat',
'Do not NAT',
'Enabling this option will disable NAT for traffic matching this rule and stop processing Outbound NAT rules',
- $pconfig['nonat']
+ isset($pconfig['nonat'])
))->setHelp('In most cases this option is not required');
$iflist = get_configured_interface_with_descr(false, true);
OpenPOWER on IntegriCloud