summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-22 18:37:04 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-22 18:37:04 +0000
commit48cd521114639f75dce00190cd04b83c7237c4e0 (patch)
tree40612bf04ba36973960f1a800e568cd4456ecca0 /usr
parent74db154e85b385bbeef08bd7ef641554e4db72a4 (diff)
downloadpfsense-48cd521114639f75dce00190cd04b83c7237c4e0.zip
pfsense-48cd521114639f75dce00190cd04b83c7237c4e0.tar.gz
Test the correct variable when looking for 0.0.0.0
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/vpn_ipsec_edit.php2
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") {
OpenPOWER on IntegriCloud