LDAP: Fix base-comparison with multibyte characters, fixes #5081. Thanks to @sfyang

remotes/origin/stable6
Arthur Schiwon 11 years ago
parent e6d13468d3
commit e61d961efb
  1. 2
      apps/user_ldap/lib/access.php

@ -1021,7 +1021,7 @@ class Access extends LDAPUtility {
$bases = $this->sanitizeDN($bases);
foreach($bases as $base) {
$belongsToBase = true;
if(mb_strripos($dn, $base, 0, 'UTF-8') !== (mb_strlen($dn, 'UTF-8')-mb_strlen($base))) {
if(mb_strripos($dn, $base, 0, 'UTF-8') !== (mb_strlen($dn, 'UTF-8')-mb_strlen($base, 'UTF-8'))) {
$belongsToBase = false;
}
if($belongsToBase) {

Loading…
Cancel
Save