diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-22 18:37:04 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-22 18:37:04 +0000 |
commit | 48cd521114639f75dce00190cd04b83c7237c4e0 (patch) | |
tree | 40612bf04ba36973960f1a800e568cd4456ecca0 /usr/local | |
parent | 74db154e85b385bbeef08bd7ef641554e4db72a4 (diff) | |
download | pfsense-48cd521114639f75dce00190cd04b83c7237c4e0.zip pfsense-48cd521114639f75dce00190cd04b83c7237c4e0.tar.gz |
Test the correct variable when looking for 0.0.0.0
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/vpn_ipsec_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/vpn_ipsec_edit.php b/usr/local/www/vpn_ipsec_edit.php index dd7d17d..7f11683 100755 --- a/usr/local/www/vpn_ipsec_edit.php +++ b/usr/local/www/vpn_ipsec_edit.php @@ -153,7 +153,7 @@ if ($_POST) { $input_errors[] = "The P2 lifetime must be an integer."; } if ($_POST['remotebits'] && (!is_numeric($_POST['remotebits']) || ($_POST['remotebits'] < 0) || ($_POST['remotebits'] > 32))) { - if(!$_POST['remotenet'] == "0.0.0.0") + if(!$_POST['remotebits'] == "0.0.0.0") $input_errors[] = "The remote network bits are invalid."; } if (($_POST['remotenet'] && !is_ipaddr($_POST['remotenet'])) or $_POST['remotenet'] == "0.0.0.0") { |