diff options
author | Chris Buechler <cmb@pfsense.org> | 2010-05-08 23:17:33 -0400 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2010-05-08 23:17:33 -0400 |
commit | c013d3f5fa9752a413844ee7901054afbaf115b6 (patch) | |
tree | e939274a4fd3b3cb0371d129d06b25c37e67c3ca /usr/local/www | |
parent | aba2f06d3a16fa5bee0153992a7cc00d69f60a52 (diff) | |
download | pfsense-c013d3f5fa9752a413844ee7901054afbaf115b6.zip pfsense-c013d3f5fa9752a413844ee7901054afbaf115b6.tar.gz |
check more closely for match here, to fix multiple items being marked as "selected", leading to the wrong interface being selected.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index 4565b5e..e2ddd66 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -635,7 +635,7 @@ include("head.inc"); if ($config['openvpn']["openvpn-server"] || $config['openvpn']["openvpn-client"]) $interfaces["openvpn"] = "OpenVPN"; foreach ($interfaces as $iface => $ifacename): ?> - <option value="<?=$iface;?>" <?php if ($pconfig['interface'] <> "" && stristr($pconfig['interface'], $iface)) echo "selected"; ?>><?=gettext($ifacename);?></option> + <option value="<?=$iface;?>" <?php if ($pconfig['interface'] <> "" && (strcasecmp($pconfig['interface'], $iface) == 0)) echo "selected"; ?>><?=gettext($ifacename);?></option> <?php endforeach; ?> </select> <br /> |