From 083faec10fc66b81695a6a2d1aacea9f0df9f7f5 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 26 Sep 2007 13:47:48 +0000 Subject: [PATCH] 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 --- plugins/admin/systems/class_servDNSeditZone.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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{ -- 2.30.2