diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2012-04-27 21:59:22 -0600 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2012-04-27 21:59:22 -0600 |
commit | 43fd29dfa2866af83e816e87c814fc2302e41c25 (patch) | |
tree | 2ef7b11c891b248aa43f35dafe7404432b14229e /usr | |
parent | c5d8b1f44120761b0919882d86dbf2460aa72671 (diff) | |
download | pfsense-43fd29dfa2866af83e816e87c814fc2302e41c25.zip pfsense-43fd29dfa2866af83e816e87c814fc2302e41c25.tar.gz |
Fix preservation of the selection of interfaces on input errors for floating rules.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index e48bc26..de3a9eb 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -760,6 +760,8 @@ include("head.inc"); /* add openvpn/tun interfaces */ if ($config['openvpn']["openvpn-server"] || $config['openvpn']["openvpn-client"]) $interfaces["openvpn"] = "OpenVPN"; + if (is_array($pconfig['interface'])) + $pconfig['interface'] = implode(",", $pconfig['interface']); $selected_interfaces = explode(",", $pconfig['interface']); foreach ($interfaces as $iface => $ifacename): ?> <option value="<?=$iface;?>" <?php if ($pconfig['interface'] <> "" && ( strcasecmp($pconfig['interface'], $iface) == 0 || in_array($iface, $selected_interfaces) )) echo "selected"; ?>><?=$ifacename?></option> |