LDPA: don't drop legal whitespaces when sanitizing DN. Fixes oc-914

This commit is contained in:
Arthur Schiwon 2012-06-06 12:29:48 +02:00
parent ca0108aabf
commit 190fca1121
1 changed files with 1 additions and 1 deletions

View File

@ -530,7 +530,7 @@ class OC_LDAP {
static private function sanitizeDN($dn) { static private function sanitizeDN($dn) {
//OID sometimes gives back DNs with whitespace after the comma a la "uid=foo, cn=bar, dn=..." We need to tackle this! //OID sometimes gives back DNs with whitespace after the comma a la "uid=foo, cn=bar, dn=..." We need to tackle this!
$dn = preg_replace('/,\s+/',',',$dn); $dn = preg_replace('/([^\\\]),(\s+)/','\1,',$dn);
//make comparisons and everything work //make comparisons and everything work
$dn = strtolower($dn); $dn = strtolower($dn);