summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 98e99ab)
raw | patch | inline | side by side (parent: 98e99ab)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 26 Sep 2007 13:47:48 +0000 (13:47 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 26 Sep 2007 13:47:48 +0000 (13:47 +0000) |
Network class wasn't detected correctly
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7413 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7413 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_servDNSeditZone.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_servDNSeditZone.inc b/plugins/admin/systems/class_servDNSeditZone.inc
index 02a887407c8096cd61d60eff0d1c173277805aad..69590cea6d691a3775a0118f6d23c5b323ed0e18 100644 (file)
/* 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{