diff options
author | Renato Botelho <renato@netgate.com> | 2016-11-25 14:47:21 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-11-25 14:47:21 -0200 |
commit | 81e2aa253a946b36a92e88f19b8761efe771b7a1 (patch) | |
tree | 0cba4eaaddc5749583f81942d219a9a1369135d5 /src/usr/local/www/firewall_rules_edit.php | |
parent | 75357823de383b667a065048d7a87fddb4340d25 (diff) | |
parent | 38ce4a18324aaceb76a976d08d0015bdc5be8bf7 (diff) | |
download | pfsense-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.php | 5 |
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) || |