Code

closes #382 - Fixed DNS nSRecord problem. Server->Service->Zones->Edit->Global-Settin...
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 31 Mar 2008 06:01:54 +0000 (06:01 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 31 Mar 2008 06:01:54 +0000 (06:01 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@10072 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servDNSeditZone.inc

index 8dd76dc05c329e8807c610bed21ea19579557592..1dfcf938bbcf8343735b405b84f62516629cd485 100644 (file)
@@ -93,7 +93,7 @@ class servdnseditZone extends plugin
             $tmp2[$tmp[0]] = $rec;
             unset($this->Records[$key]);
           }
-          if($rec['type'] == "nSRecord"){
+          if($rec['type'] == "nSRecord" && preg_match("/".normalizePreg($this->sOAprimary)."/",$rec['value'])){
             unset($this->Records[$key]);
           }
         }