diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-01-29 20:09:44 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-01-29 20:18:00 +0000 |
commit | d52b71c7b081a6dba19f5a54ecd6e073d06d90b9 (patch) | |
tree | 77a2967e64d23321832ca86d5ef529fe80525753 /usr/local/www/system_gateways_edit.php | |
parent | d24b2daefb1a6866ea58f3ce375508f08af6def5 (diff) | |
download | pfsense-d52b71c7b081a6dba19f5a54ecd6e073d06d90b9.zip pfsense-d52b71c7b081a6dba19f5a54ecd6e073d06d90b9.tar.gz |
Ticket #303. Fix gateway address checking.
Diffstat (limited to 'usr/local/www/system_gateways_edit.php')
-rwxr-xr-x | usr/local/www/system_gateways_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 4885760..82b471d 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -101,7 +101,7 @@ if ($_POST) { $input_errors[] = "The gateway name must not contain invalid characters."; } /* skip system gateways which have been automatically added */ - if (($_POST['gateway'] && (!is_ipaddr($_POST['gateway'])) && ($_POST['attribute'] != "system")) && (! $_POST['gateway'] == "dynamic")) { + if (($_POST['gateway'] && (!is_ipaddr($_POST['gateway'])) && ($_POST['attribute'] != "system")) && ($_POST['gateway'] != "dynamic")) { $input_errors[] = "A valid gateway IP address must be specified."; } |