From 734eee7b98c74087838069d0c38a5d8c76488a00 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 29 Jul 2010 13:54:28 +0000 Subject: [PATCH] Updated object handling, special chars in obejct dns git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19258 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/tabsPackage.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/fai/admin/fai/tabsPackage.inc b/gosa-plugins/fai/admin/fai/tabsPackage.inc index f3111f4a0..49c13369c 100644 --- a/gosa-plugins/fai/admin/fai/tabsPackage.inc +++ b/gosa-plugins/fai/admin/fai/tabsPackage.inc @@ -22,7 +22,9 @@ class tabsPackage extends tabs function save($ignore_account= FALSE) { $baseobject= $this->by_object['faiPackage']; - $new_dn ='cn='.$baseobject->cn.",".get_ou("faiPackage", "faiPackageRDN").$this->parent->fai_release; + $cn = preg_replace('/,/', '\,', $baseobject->cn); + $cn = preg_replace('/"/', '\"', $cn); + $new_dn ='cn='.$cn.",".get_ou("faiPackage", "faiPackageRDN").$this->parent->fai_release; if ($this->dn != $new_dn && $this->dn != "new"){ -- 2.30.2