From 5dd81a6b68560e6ba14b8a742adf8d4eea6db787 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 2 Feb 2010 07:03:03 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_ldap.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.30.2