# HG changeset patch # User rejo # Date 1211579528 0 # Node ID a17ec7de4bbba483ef45dae220288880633d0a03 # Parent 6d0e4e6bedadeafec0a2976f5f9cb0cf0cefc4e6 [feladat @ 281] Fixed a bug that was introduced by bugfix (...) in r277. diff -r 6d0e4e6bedad -r a17ec7de4bbb add_zone_master.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)) { diff -r 6d0e4e6bedad -r a17ec7de4bbb add_zone_slave.php --- 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); diff -r 6d0e4e6bedad -r a17ec7de4bbb inc/record.inc.php --- 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;