# HG changeset patch # User rejo # Date 1212092866 0 # Node ID 0345d21f21b003285dc9b40ccdf61abf2dfeeb0b # Parent a17ec7de4bbba483ef45dae220288880633d0a03 [feladat @ 282] Bugfix. Unable to add a new slave due to wrong validation of user input. Reported by Adhisimon. Closes #58. diff -r a17ec7de4bbb -r 0345d21f21b0 add_zone_slave.php --- a/add_zone_slave.php Fri May 23 21:52:08 2008 +0000 +++ b/add_zone_slave.php Thu May 29 20:27:46 2008 +0000 @@ -38,7 +38,7 @@ error(ERR_DNS_HOSTNAME); } elseif (domain_exists($zone)) { error(ERR_DOMAIN_EXISTS); - } elseif (!is_valid_ipv4($master) || !is_valid_ipv6($master)) { + } elseif (!is_valid_ipv4($master) && !is_valid_ipv6($master)) { error(ERR_DNS_IP); } else { if(add_domain($zone, $owner, $webip, $mailip, $empty, $type, $master)) {