From: hickert Date: Mon, 27 Aug 2007 12:13:28 +0000 (+0000) Subject: Removed duplicated . from ptr record X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9a62cf41edd0e26090a09dff8cf36debf0a3b819;p=gosa.git Removed duplicated . from ptr record git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7146 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions_dns.inc b/include/functions_dns.inc index b8346e26c..c5b507d7c 100644 --- a/include/functions_dns.inc +++ b/include/functions_dns.inc @@ -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;