Code

Removed duplicated . from ptr record
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Aug 2007 12:13:28 +0000 (12:13 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Aug 2007 12:13:28 +0000 (12:13 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7146 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions_dns.inc

index b8346e26c19b82cf77fbb28a6e6dd51911765253..c5b507d7c5e7362d533ba65b6d7e5bcf0958ce5b 100644 (file)
@@ -570,7 +570,7 @@ function getDNSHostEntriesDiff($config,$oldName,$newEntry,$newName)
       $ptrObj = $baseObj;
       $reverseName = getNameFromMix($reverseNameMix);
       $ptrObj['zoneName']           = $reverseName;
-      $ptrObj['pTRRecord']          = $newName.".".$zoneName.".";
+      $ptrObj['pTRRecord']          = preg_replace("/\.\.$/",".",$newName.".".$zoneName.".");
       $ptrObj['relativeDomainName'] = $rec['value'];
     
       $add[$PTRdn] = $ptrObj;