diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-31 22:45:31 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-31 22:45:31 +0000 |
commit | 623247f7676d6b2febbea944ad0f03684eacc9cd (patch) | |
tree | d9ac59f0938228454642db704ccb7d1c4a4e9cc5 /usr/local/www | |
parent | 407a29ca29e9eb9b5edbf11e5206d9b3a7d2648e (diff) | |
download | pfsense-623247f7676d6b2febbea944ad0f03684eacc9cd.zip pfsense-623247f7676d6b2febbea944ad0f03684eacc9cd.tar.gz |
Add back checks for LAN ip address. An address is required for traffic shaping.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/interfaces_lan.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr/local/www/interfaces_lan.php b/usr/local/www/interfaces_lan.php index c3a8030..278bfd8 100755 --- a/usr/local/www/interfaces_lan.php +++ b/usr/local/www/interfaces_lan.php @@ -79,12 +79,11 @@ if ($_POST) { $changedesc = "LAN Interface: "; /* input validation */ - if (!$_POST['bridge']) { - $reqdfields = explode(" ", "ipaddr subnet"); - $reqdfieldsn = explode(",", "IP address,Subnet bit count"); - - do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); - } + $reqdfields = explode(" ", "ipaddr subnet"); + $reqdfieldsn = explode(",", "IP address,Subnet bit count"); + + do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); + if (($_POST['ipaddr'] && !is_ipaddr($_POST['ipaddr']))) { $input_errors[] = "A valid IP address must be specified."; |