Code

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

gosa-plugins/gofon/gofon/conference/tabs_conference.inc

index 35038a579067fe09e610f3679ee1524cdde21ade..3527ab2935ef0e9cb4941758635d148b3019fc37 100644 (file)
@@ -22,7 +22,9 @@ class conferencetabs extends tabs
   function save($ignore_account= FALSE)
   {
        $baseobject= $this->by_object['conference'];
-       $new_dn= 'cn='.$baseobject->cn.','.get_ou("conference", "phoneConferenceRDN").$baseobject->base;
+    $cn      = preg_replace('/,/', '\,', $baseobject->cn);
+    $cn      = preg_replace('/"/', '\"', $cn);
+       $new_dn= @LDAP::convert('cn='.$cn.','.get_ou("conference", "phoneConferenceRDN").$baseobject->base);
 
        if(strtolower($this->dn)==strtolower($new_dn)){
                $this->dn=$new_dn;