From: hickert Date: Wed, 26 Sep 2007 13:47:48 +0000 (+0000) Subject: Fixed dns zone editor. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=083faec10fc66b81695a6a2d1aacea9f0df9f7f5;p=gosa.git Fixed dns zone editor. Network class wasn't detected correctly git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7413 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_servDNSeditZone.inc b/plugins/admin/systems/class_servDNSeditZone.inc index 02a887407..69590cea6 100644 --- a/plugins/admin/systems/class_servDNSeditZone.inc +++ b/plugins/admin/systems/class_servDNSeditZone.inc @@ -113,11 +113,11 @@ class servdnseditZone extends plugin /* Detect Network class */ if(!empty($this->ReverseZone)){ - $dots = count(split(".",$this->ReverseZone)); - if($dots == 0){ + $dots = count(split("\.",preg_replace("/^[^\/]*+\//","",$this->ReverseZone))); + if($dots == 1){ $this->NetworkClass = "A"; $this->ReverseZone .= ".0.0.0"; - }elseif($dots == 1){ + }elseif($dots == 2){ $this->NetworkClass = "B"; $this->ReverseZone .= ".0.0"; }else{