From 9a62cf41edd0e26090a09dff8cf36debf0a3b819 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 27 Aug 2007 12:13:28 +0000 Subject: [PATCH] Removed duplicated . from ptr record git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7146 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions_dns.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2