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:00:38 +0000 (06:00 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 31 Mar 2008 06:00:38 +0000 (06:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10071 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc

index 16ce887e879d65e6577156b788c4893b7bf8fae7..315771c393a2c414fc93cf57eab337fcece1dd29 100644 (file)
@@ -91,7 +91,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]);
           }
         }