Do not validate ip and subnet fields if we are bridging

This commit is contained in:
Scott Ullrich 2005-08-02 20:41:00 +00:00
parent 752110812c
commit b85311ed85

View File

@ -77,8 +77,10 @@ if ($_POST) {
$changedesc = "LAN Interface: ";
/* input validation */
$reqdfields = explode(" ", "ipaddr subnet");
$reqdfieldsn = explode(",", "IP address,Subnet bit count");
if (!$_POST['bridge']) {
$reqdfields = explode(" ", "ipaddr subnet");
$reqdfieldsn = explode(",", "IP address,Subnet bit count");
}
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);