LDAP: Fix base-comparison with multibyte characters, fixes #5081. Thanks to @sfyang
This commit is contained in:
parent
e6d13468d3
commit
e61d961efb
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue