From: hickert Date: Thu, 29 Jul 2010 13:54:21 +0000 (+0000) Subject: Updated object handling, special chars in obejct dns X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f7b0eb088c4fe3380893e1834f643b8cba25b825;p=gosa.git Updated object handling, special chars in obejct dns git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19255 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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?