From dd6acb4906c0b812e69610cceb63aa45b1861231 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 2 Nov 2009 19:33:34 +0000 Subject: [PATCH] fixed escapeDN() --- lam/lib/account.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/lam/lib/account.inc b/lam/lib/account.inc index f8d37e71..0973bdef 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -529,6 +529,7 @@ function get_preg($argument, $regexp) { * @return String escaped DN */ function escapeDN($dn) { + $dn = preg_replace('/[ ]*,[ ]*/', ',', $dn); return str_replace( array(')', '(', ' ', '*'), array('\\29', '\\28', '\\20', '\\2a'),