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