diff options
author | Jonathon Anderson <jpanderson0@gmail.com> | 2016-11-11 08:01:01 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-11 08:01:01 -0600 |
commit | 6a365a4c80aced41ec87ad93ed2c986d9935a4ea (patch) | |
tree | 12504586f380ba91bf6d959b469ad52857423104 /src/usr/local/www/wizards | |
parent | 3ad0f9b63f690f77cf8c4d398b521eba6909f0bc (diff) | |
download | pfsense-6a365a4c80aced41ec87ad93ed2c986d9935a4ea.zip pfsense-6a365a4c80aced41ec87ad93ed2c986d9935a4ea.tar.gz |
LAN IP validation logic
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 cce817d..21bd6a9 100644 --- a/src/usr/local/www/wizards/setup_wizard.xml +++ b/src/usr/local/www/wizards/setup_wizard.xml @@ -588,7 +588,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; } |