From c59732ede31d4415842bf17ed7c8c9018a23a5ba Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 10 Sep 2008 13:38:38 +0000 Subject: [PATCH] Updated DNS -Ensure that old Zones will be kept after saving. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12399 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc b/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc index 151c79ac1..bc3198590 100644 --- a/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc +++ b/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc @@ -463,7 +463,9 @@ class DNS */ $zN = trim($zoneName,"."); $nN = trim($newName,"."); + $oN = trim($oldName,"."); $newName = preg_replace("/[\.]*".normalizePreg($zN)."$/i","",$nN); + $oldName = preg_replace("/[\.]*".normalizePreg($zN)."$/i","",$oN); /* If reverseZone can't be resolved ... this * can't be a valid entry, so remove this account -- 2.30.2