From: hickert Date: Tue, 21 Sep 2010 09:32:23 +0000 (+0000) Subject: Updated special char handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1dde97e6adf19e203268fcfade5e7d073804ba0b;p=gosa.git Updated special char handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19783 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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); }