Code

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

gosa-core/plugins/admin/ogroups/tabs_ogroups.inc

index 91e51f8d550db973aa46b20bac13fe8aa26f79ed..740eb25c0b3a537a21383f2a61d1db71034211ac 100644 (file)
@@ -344,7 +344,9 @@ class ogrouptabs extends tabs
 
         /* Check for new 'dn', in order to propagate the
            'dn' to all plugins */
-        $new_dn= 'cn='.$baseobject->cn.','.get_ou("group", "ogroupRDN").$baseobject->base;
+        $cn      = preg_replace('/,/', '\,', $baseobject->cn); 
+        $cn      = preg_replace('/"/', '\"', $cn); 
+        $new_dn= 'cn='.$cn.','.get_ou("group", "ogroupRDN").$baseobject->base;
 
         /* Move group? */
         if (LDAP::fix($this->dn) != LDAP::fix($new_dn)){