reduce regress

still dirty hack, but solves a big problem.
This commit is contained in:
Vitali Kari
2016-06-15 20:06:36 +02:00
committed by GitHub
parent 0b30ca1071
commit a175b291c3

View File

@@ -295,9 +295,9 @@ function get_dn($samaccountname) {
}
function get_cn($dn) {
dn = str_replace('\\,','~',$dn);
$dn = str_replace('\\,','~C0mmA~',$dn);
preg_match('/[^,]*/', $dn, $matches, PREG_OFFSET_CAPTURE, 3);
$matches[0][0] = str_replace('~',',',$matches[0][0]);
$matches[0][0] = str_replace('~C0mmA~',',',$matches[0][0]);
return $matches[0][0];
}