summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b8ce1ba)
raw | patch | inline | side by side (parent: b8ce1ba)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 31 Aug 2007 09:45:24 +0000 (09:45 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 31 Aug 2007 09:45:24 +0000 (09:45 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7177 594d385d-05f5-0310-b6e9-bd551577e9d8
include/functions_dns.inc | patch | blob | history |
index 42f0519647412c8e4c6efa0ee0bd5f1c4fdad17f..c1ef6fbd760b425aadc38594fcbfda57b4fc26e2 100644 (file)
$ptrObj = $baseObj;
$reverseName = getNameFromMix($reverseNameMix);
$ptrObj['zoneName'] = $reverseName;
- $ptrObj['pTRRecord'] = preg_replace("/\.\.$/",".",$newName.".".$zoneName.".");
+ if(!preg_match("/\.$/",$newName)){
+ $ptrObj['pTRRecord'] = preg_replace("/\.\.$/",".",$newName.".".$zoneName.".");
+ }else{
+ $ptrObj['pTRRecord'] = preg_replace("/\.\.$/",".",$newName.".");
+ .}
$ptrObj['relativeDomainName'] = $rec['value'];
$add[$PTRdn] = $ptrObj;