add_zone_master.php
changeset 161 0832d846bf8e
parent 126 cb06e3e29ed8
child 170 391e744a1def
--- a/add_zone_master.php	Tue May 13 20:37:32 2008 +0000
+++ b/add_zone_master.php	Tue May 13 20:59:32 2008 +0000
@@ -49,7 +49,7 @@
 
         if(!$empty) {
                 $empty = 0;
-                if(!eregi('in-addr.arpa', $domain) && (!is_valid_ip($webip) || !is_valid_ip($mailip)) ) {
+                if(!eregi('in-addr.arpa', $domain) && (!is_valid_ipv4($webip) || !is_valid_ipv4($mailip)) ) {
                         error(_('IP address of web- or mailserver is invalid.')); 
 			$error = "1";
                 }