diff options
author | Jonathon Anderson <jpanderson0@gmail.com> | 2016-11-11 08:01:01 -0600 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-11-29 14:57:04 -0200 |
commit | 04d7836bb70696aca26629b93178c1433eeb3ffc (patch) | |
tree | 3037800fc8734e4de3b5628d9d2537a65f672c9f /src/usr/local/www/wizards | |
parent | d1a4cb8d831e56d6cea187db781ef9040e4b2487 (diff) | |
download | pfsense-04d7836bb70696aca26629b93178c1433eeb3ffc.zip pfsense-04d7836bb70696aca26629b93178c1433eeb3ffc.tar.gz |
LAN IP validation logic
(cherry picked from commit 6a365a4c80aced41ec87ad93ed2c986d9935a4ea)
Diffstat (limited to 'src/usr/local/www/wizards')
-rw-r--r-- | src/usr/local/www/wizards/setup_wizard.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/wizards/setup_wizard.xml b/src/usr/local/www/wizards/setup_wizard.xml index f99c1bd..edf6681 100644 --- a/src/usr/local/www/wizards/setup_wizard.xml +++ b/src/usr/local/www/wizards/setup_wizard.xml @@ -622,7 +622,7 @@ </fields> <stepsubmitphpaction> <![CDATA[ - if (empty($_POST['lanipaddress']) || !is_ipaddr($_POST['lanipaddress']) || strcasecmp($_POST['lanipaddress'],"dhcp")!=0) { + if if (empty($_POST['lanipaddress'])) || (!is_ipaddr($_POST['lanipaddress']) && (strtolower($_POST['lanipaddress']) != "dhcp"))) { print_info_box("Invalid LAN IP address. Please press back in the browser window and correct."); die; } |