Code

Updated object handling, special chars in obejct dns
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Jul 2010 13:54:43 +0000 (13:54 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 29 Jul 2010 13:54:43 +0000 (13:54 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19264 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/groups/tabs_group.inc

index 444c85237276c15c6282f2b17af9e90d00e610dd..01882c0fbf8cee2a579954e14782c3934c10352e 100644 (file)
@@ -61,7 +61,9 @@ class grouptabs extends tabs
 
                /* Check for new 'dn', in order to propagate the
                   'dn' to all plugins */
-               $new_dn= 'cn='.$baseobject->cn.','.get_groups_ou().$baseobject->base;
+        $cn      = preg_replace('/,/', '\,', $baseobject->cn); 
+        $cn      = preg_replace('/"/', '\"', $cn); 
+               $new_dn= 'cn='.$cn.','.get_groups_ou().$baseobject->base;
 
                /* Put baseobjects 'cn' to mailobjects 'uid' */
                if (isset($this->by_object['mailgroup'])){