summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-11-25 14:47:21 -0200
committerRenato Botelho <renato@netgate.com>2016-11-25 14:47:21 -0200
commit81e2aa253a946b36a92e88f19b8761efe771b7a1 (patch)
tree0cba4eaaddc5749583f81942d219a9a1369135d5 /src/usr/local/www/firewall_rules_edit.php
parent75357823de383b667a065048d7a87fddb4340d25 (diff)
parent38ce4a18324aaceb76a976d08d0015bdc5be8bf7 (diff)
downloadpfsense-81e2aa253a946b36a92e88f19b8761efe771b7a1.zip
pfsense-81e2aa253a946b36a92e88f19b8761efe771b7a1.tar.gz
Merge pull request #3224 from phil-davis/patch-2
Diffstat (limited to 'src/usr/local/www/firewall_rules_edit.php')
-rw-r--r--src/usr/local/www/firewall_rules_edit.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php
index 5e18817..1a7d40a 100644
--- a/src/usr/local/www/firewall_rules_edit.php
+++ b/src/usr/local/www/firewall_rules_edit.php
@@ -1265,7 +1265,10 @@ foreach (['src' => 'Source', 'dst' => 'Destination'] as $type => $name) {
// The rule type dropdown on the GUI can be one of the special names like
// "any" "LANnet" "LAN address"... or "Single host or alias" or "Network"
- if (is_specialnet($pconfig[$type])) {
+ if ($pconfig[$type.'type']) {
+ // The rule type came from the $_POST array, after input errors, so keep it.
+ $ruleType = $pconfig[$type.'type'];
+ } elseif (is_specialnet($pconfig[$type])) {
// It is one of the special names, let it through as-is.
$ruleType = $pconfig[$type];
} elseif ((is_ipaddrv6($pconfig[$type]) && $pconfig[$type.'mask'] == 128) ||
OpenPOWER on IntegriCloud