Code

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

gosa-plugins/fai/admin/fai/tabsHook.inc

index a271f73ed13598d286ce4ebeb8f8ee1bd381211f..273bf372f89972fa1d6bfa27f2415ff4280c6652 100644 (file)
@@ -21,7 +21,9 @@ class tabsHook extends tabs
   function save($ignore_account= FALSE)
   {
        $baseobject= $this->by_object['faiHook'];
-       $new_dn ='cn='.$baseobject->cn.",".get_ou("faiHook", "faiHookRDN").$this->parent->fai_release;
+    $cn      = preg_replace('/,/', '\,', $baseobject->cn); 
+    $cn      = preg_replace('/"/', '\"', $cn); 
+       $new_dn ='cn='.$cn.",".get_ou("faiHook", "faiHookRDN").$this->parent->fai_release;
 
        if ($this->dn != $new_dn && $this->dn != "new"){