From: hickert Date: Tue, 21 Sep 2010 07:57:28 +0000 (+0000) Subject: Fixed preplacements for ldap special chars. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=76717ec00ca7ff95b44bf945e0b4194f037f9b19;p=gosa.git Fixed preplacements for ldap special chars. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19779 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_ldap.inc b/gosa-core/include/class_ldap.inc index 5c8bac1fb..937a33855 100644 --- a/gosa-core/include/class_ldap.inc +++ b/gosa-core/include/class_ldap.inc @@ -126,7 +126,7 @@ class LDAP LDAP::$characterMapRegTo = array(); foreach(LDAP::$characterMap as $from => $to){ LDAP::$characterMapRegFrom[] = "/{$from}/"; - LDAP::$characterMapRegTo[] = "/{$to}/"; + LDAP::$characterMapRegTo[] = addslashes($to); } }else{ // To avoid querying a hundred times without any success, stop here.