From 1dde97e6adf19e203268fcfade5e7d073804ba0b Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 21 Sep 2010 09:32:23 +0000 Subject: [PATCH] Updated special char handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19783 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_ldap.inc | 1 + gosa-core/include/functions.inc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/class_ldap.inc b/gosa-core/include/class_ldap.inc index 937a33855..ce237a6ac 100644 --- a/gosa-core/include/class_ldap.inc +++ b/gosa-core/include/class_ldap.inc @@ -125,6 +125,7 @@ class LDAP LDAP::$characterMapRegFrom = array(); LDAP::$characterMapRegTo = array(); foreach(LDAP::$characterMap as $from => $to){ + $from = LDAP::convert($from); LDAP::$characterMapRegFrom[] = "/{$from}/"; LDAP::$characterMapRegTo[] = addslashes($to); } diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 1b707a6ca..6b1ad16a8 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -3852,7 +3852,7 @@ function detectLdapSpecialCharHandling() // Create a mapping out of the results. $map = array(); foreach($mapName as $key => $entry){ - $map[LDAP::convert("{$entry}")] = $mapDN[$key]; + $map[$entry] = $mapDN[$key]; } return($map); } -- 2.30.2