Skip to content
Snippets Groups Projects
Commit 48ccfa42 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

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

parent 517bd289
No related branches found
No related tags found
No related merge requests found
...@@ -530,7 +530,7 @@ class OC_LDAP { ...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment