fixed escapeDN()

This commit is contained in:
Roland Gruber 2009-11-02 19:33:34 +00:00
parent 734d74f9a6
commit dd6acb4906
1 changed files with 1 additions and 0 deletions

View File

@ -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'),