Code

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

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

index 706658d669a945978e453abdd01a5c85506b4031..f0fcb473fb9fd52b510e45e5df548fda77637a4c 100644 (file)
@@ -22,8 +22,9 @@ class tabsPartition extends tabs
   function save($ignore_account= FALSE)
   {
        $baseobject= $this->by_object['faiPartitionTable'];
-
-       $new_dn ='cn='.$baseobject->cn.",".get_ou("faiPartitionTable", "faiPartitionRDN").$this->parent->fai_release;
+    $cn      = preg_replace('/,/', '\,', $baseobject->cn); 
+    $cn      = preg_replace('/"/', '\"', $cn); 
+       $new_dn ='cn='.$cn.",".get_ou("faiPartitionTable", "faiPartitionRDN").$this->parent->fai_release;
 
        if ($this->dn != $new_dn && $this->dn != "new"){