From: hickert Date: Mon, 27 Aug 2007 08:08:51 +0000 (+0000) Subject: Updated zone address checks. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=583ff013077bc82e5390062443690a3cee3421f1;p=gosa.git Updated zone address checks. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7142 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servDNSeditZone.inc b/plugins/admin/systems/class_servDNSeditZone.inc index 2bb3d47c3..ac5b3c3b7 100644 --- a/plugins/admin/systems/class_servDNSeditZone.inc +++ b/plugins/admin/systems/class_servDNSeditZone.inc @@ -430,8 +430,8 @@ class servdnseditZone extends plugin } /* Check class for given Zone Address */ - $addr = preg_replace("/^[^\/]+\//","",$this->ReverseZone); - + $addr = preg_replace("/^[^\/]*+\//","",$this->ReverseZone); + /* Check for valid&complete IP address */ if(!is_ip($addr)){ $message[] = _("The given network address is not a valid, please specify a valid IP address.");