From 816c7abf870fab046a1b65a54062e0569a4c5797 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 29 Jul 2010 13:55:08 +0000 Subject: [PATCH] Updated object handling, special chars in obejct dns git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19274 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/systems/admin/systems/tabs_component.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/systems/admin/systems/tabs_component.inc b/gosa-plugins/systems/admin/systems/tabs_component.inc index ac1a6ab5e..2c361ab24 100644 --- a/gosa-plugins/systems/admin/systems/tabs_component.inc +++ b/gosa-plugins/systems/admin/systems/tabs_component.inc @@ -45,7 +45,9 @@ class componenttabs extends tabs /* Check for new 'dn', in order to propagate the 'dn' to all plugins */ $baseobject= $this->by_object['componentGeneric']; - $this->dn= "cn=$baseobject->cn,".get_ou("componentGeneric", "componentRDN").$baseobject->base; + $cn = preg_replace('/,/', '\,', $baseobject->cn); + $cn = preg_replace('/"/', '\"', $cn); + $this->dn= "cn={$cn},".get_ou("componentGeneric", "componentRDN").$baseobject->base; if($this->dn != $baseobject->orig_dn && $baseobject->orig_dn != "new"){ -- 2.30.2