[feladat @ 277]
authorrejo
Sun, 18 May 2008 11:51:59 +0000
changeset 170 391e744a1def
parent 169 41353c2e0c9f
child 171 2a10febd6af9
[feladat @ 277] Changed legacy function name for hostname validation to new code. Bug reported by Adhisimon. Closes: #55.
add_zone_master.php
add_zone_slave.php
inc/record.inc.php
--- a/add_zone_master.php	Sun May 18 07:56:11 2008 +0000
+++ b/add_zone_master.php	Sun May 18 11:51:59 2008 +0000
@@ -56,7 +56,7 @@
         }
 
         if (!$error) {
-                if (!is_valid_domain($domain)) {
+                if (!is_valid_hostname_fqdn($domain)) {
                         error(ERR_DOMAIN_INVALID); 
 			$error = "1";
                 } elseif (domain_exists($domain)) {
--- a/add_zone_slave.php	Sun May 18 07:56:11 2008 +0000
+++ b/add_zone_slave.php	Sun May 18 11:51:59 2008 +0000
@@ -34,7 +34,7 @@
 (verify_permission('zone_slave_add')) ? $zone_slave_add = "1" : $zone_slave_add = "0" ;
 
 if ($_POST['submit'] && $zone_slave_add == "1") {
-	if (!is_valid_domain($zone)) {
+	if (!is_valid_hostname_fqdn($zone)) {
 		error(ERR_DNS_HOSTNAME);
 	} elseif (domain_exists($zone)) {
 		error(ERR_DOMAIN_EXISTS);
--- a/inc/record.inc.php	Sun May 18 07:56:11 2008 +0000
+++ b/inc/record.inc.php	Sun May 18 11:51:59 2008 +0000
@@ -641,7 +641,7 @@
 {
 	global $db;
 
-	if (is_valid_domain($domain)) {
+	if (is_valid_hostname_fqdn($domain)) {
 		$result = $db->query("SELECT id FROM domains WHERE name=".$db->quote($domain));
 		if ($result->numRows() == 0) {
 			return false;