[feladat @ 281]
authorrejo
Fri, 23 May 2008 21:52:08 +0000
changeset 174 a17ec7de4bbb
parent 173 6d0e4e6bedad
child 175 0345d21f21b0
[feladat @ 281] Fixed a bug that was introduced by bugfix (...) in r277.
add_zone_master.php
add_zone_slave.php
inc/record.inc.php
--- a/add_zone_master.php	Mon May 19 19:01:58 2008 +0000
+++ b/add_zone_master.php	Fri May 23 21:52:08 2008 +0000
@@ -56,7 +56,7 @@
         }
 
         if (!$error) {
-                if (!is_valid_hostname_fqdn($domain)) {
+                if (!is_valid_hostname_fqdn($domain,0)) {
                         error(ERR_DOMAIN_INVALID); 
 			$error = "1";
                 } elseif (domain_exists($domain)) {
--- a/add_zone_slave.php	Mon May 19 19:01:58 2008 +0000
+++ b/add_zone_slave.php	Fri May 23 21:52:08 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_hostname_fqdn($zone)) {
+	if (!is_valid_hostname_fqdn($zone,0)) {
 		error(ERR_DNS_HOSTNAME);
 	} elseif (domain_exists($zone)) {
 		error(ERR_DOMAIN_EXISTS);
--- a/inc/record.inc.php	Mon May 19 19:01:58 2008 +0000
+++ b/inc/record.inc.php	Fri May 23 21:52:08 2008 +0000
@@ -203,7 +203,7 @@
                 error(ERR_DNS_IP);
 		return false;
         }
-        if (!is_valid_hostname($ns_name)) {
+        if (!is_valid_hostname($ns_name,0)) {
                 error(ERR_DNS_HOSTNAME);
 		return false;
         }
@@ -641,7 +641,7 @@
 {
 	global $db;
 
-	if (is_valid_hostname_fqdn($domain)) {
+	if (is_valid_hostname_fqdn($domain,0)) {
 		$result = $db->query("SELECT id FROM domains WHERE name=".$db->quote($domain));
 		if ($result->numRows() == 0) {
 			return false;