From: hickert Date: Tue, 2 Feb 2010 07:03:03 +0000 (+0000) Subject: Updated create_missing_trees X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5dd81a6b68560e6ba14b8a742adf8d4eea6db787;p=gosa.git Updated create_missing_trees -We can now create departments with ',' automatically. This is required for snaptshots of objects in departments with ',' git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15566 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_ldap.inc b/gosa-core/include/class_ldap.inc index 1f2baab3e..80cb94f32 100644 --- a/gosa-core/include/class_ldap.inc +++ b/gosa-core/include/class_ldap.inc @@ -662,7 +662,8 @@ class LDAP{ } else { $type= preg_replace('/^([^=]+)=.*$/', '\\1', $cdn); - $param= preg_replace('/^[^=]+=([^,]+).*$/', '\\1', $cdn); + $param= LDAP::fix(preg_replace('/^[^=]+=([^,]+).*$/', '\\1', $cdn)); + $param=preg_replace(array('/\\\\,/','/\\\\"/'),array(',','"'),$param); $na= array();