diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-11 17:28:51 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-11 17:28:51 +0000 |
commit | 696ca934c57df30b41b291d57649c60cb8ff2c97 (patch) | |
tree | bec3840a87192958edc418f5485adb0f93aefd69 | |
parent | 8ceac87746736112ae7df9ac786f16bc87b821bb (diff) | |
download | pfsense-696ca934c57df30b41b291d57649c60cb8ff2c97.zip pfsense-696ca934c57df30b41b291d57649c60cb8ff2c97.tar.gz |
Use is_domain() to deterimine if item is DYNDNS.
-rwxr-xr-x | usr/local/www/vpn_ipsec_edit.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/vpn_ipsec_edit.php b/usr/local/www/vpn_ipsec_edit.php index 71c90be..28323e0 100755 --- a/usr/local/www/vpn_ipsec_edit.php +++ b/usr/local/www/vpn_ipsec_edit.php @@ -160,7 +160,7 @@ if ($_POST) { $input_errors[] = "A valid remote network address must be specified."; } if (($_POST['remotegw'] && !is_ipaddr($_POST['remotegw']))) { - if($_POST['p1myidentt'] <> "dyn_dns") + if(is_domain($_POST['remotegw']) == false) $input_errors[] = "A valid remote gateway address must be specified."; } if ((($_POST['p1myidentt'] == "address") && !is_ipaddr($_POST['p1myident']))) { @@ -171,13 +171,13 @@ if ($_POST) { } if ($_POST['p1myidentt'] == "user_fqdn") { $ufqdn = explode("@",$_POST['p1myident']); - if (!is_domain($ufqdn[1])) + if (is_domain($ufqdn[1]) == false) $input_errors[] = "A valid User FQDN in the form of user@my.domain.com for 'My identifier' must be specified."; } if ($_POST['p1myidentt'] == "dyn_dns") { $dyn_dns = explode("@",$_POST['p1myident']); - //if (!is_domain($dyn_dns[1])) - //$input_errors[] = "A valid Dynamic DNS address for 'My identifier' must be specified."; + if (is_domain($dyn_dns[1]) == false) + $input_errors[] = "A valid Dynamic DNS address for 'My identifier' must be specified."; } if ($_POST['p1myidentt'] == "myaddress") |