From f7b0eb088c4fe3380893e1834f643b8cba25b825 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 29 Jul 2010 13:54:21 +0000 Subject: [PATCH] Updated object handling, special chars in obejct dns git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19255 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/goto/admin/applications/tabs_application.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/goto/admin/applications/tabs_application.inc b/gosa-plugins/goto/admin/applications/tabs_application.inc index eea2a1a45..e0c98155e 100644 --- a/gosa-plugins/goto/admin/applications/tabs_application.inc +++ b/gosa-plugins/goto/admin/applications/tabs_application.inc @@ -24,13 +24,15 @@ class apptabs extends tabs function save($ignore_account= FALSE) { $baseobject= $this->by_object['application']; + $cn = preg_replace('/,/', '\,', $baseobject->cn); + $cn = preg_replace('/"/', '\"', $cn); /* Check for new 'dn', in order to propagate the 'dn' to all plugins */ if($baseobject->parent->parent->IsReleaseManagementActivated()){ - $new_dn= "cn=".$baseobject->cn.",".$baseobject->parent->parent->app_release; + $new_dn= "cn=".$cn.",".$baseobject->parent->parent->app_release; }else{ - $new_dn= "cn=".$baseobject->cn.",".get_ou("application", "applicationRDN").$baseobject->base; + $new_dn= "cn=".$cn.",".get_ou("application", "applicationRDN").$baseobject->base; } // Do we have to move the object? -- 2.30.2