[feladat @ 282]
Bugfix. Unable to add a new slave due to wrong validation of user input. Reported by Adhisimon. Closes #58.
--- 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)) {