diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-10-18 14:40:08 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-10-19 00:51:37 +0200 |
commit | e61d961efb6d7302f2e0371bdc27bbc1396bb1b8 (patch) | |
tree | f443e1079bc8559059652d5741eda5a73d6bca8c | |
parent | e6d13468d3b0d72c76327436bf15364fbf4aa696 (diff) | |
download | nextcloud-server-e61d961efb6d7302f2e0371bdc27bbc1396bb1b8.tar.gz nextcloud-server-e61d961efb6d7302f2e0371bdc27bbc1396bb1b8.zip |
LDAP: Fix base-comparison with multibyte characters, fixes #5081. Thanks to @sfyang
-rw-r--r-- | apps/user_ldap/lib/access.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php index f75a78bcb0b..0d6cc7cfd27 100644 --- a/apps/user_ldap/lib/access.php +++ b/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) { |