From 76717ec00ca7ff95b44bf945e0b4194f037f9b19 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 21 Sep 2010 07:57:28 +0000 Subject: [PATCH] Fixed preplacements for ldap special chars. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19779 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_ldap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.30.2