diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-07-02 20:31:07 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-07-02 20:31:19 +0200 |
commit | 0a6f7b33c3b5e0552c041f3d529f577c0b392f40 (patch) | |
tree | 1f53d596245b37ef0d5b01586cf2aacce438a085 /apps/user_ldap/group_ldap.php | |
parent | 52822652bce0466895a6ee139d625439fddc240b (diff) | |
download | nextcloud-server-0a6f7b33c3b5e0552c041f3d529f577c0b392f40.tar.gz nextcloud-server-0a6f7b33c3b5e0552c041f3d529f577c0b392f40.zip |
LDAP: make it UTF-8 save
Diffstat (limited to 'apps/user_ldap/group_ldap.php')
-rw-r--r-- | apps/user_ldap/group_ldap.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php index a3117b5a41e..d438c7d84df 100644 --- a/apps/user_ldap/group_ldap.php +++ b/apps/user_ldap/group_ldap.php @@ -158,7 +158,7 @@ class OC_GROUP_LDAP extends OC_Group_Backend { $isMemberUid = (strtolower($this->ldapGroupMemberAssocAttr) == 'memberuid'); foreach($members as $member) { if($isMemberUid) { - $filter = str_replace('%uid', $member, OC_LDAP::conf('ldapLoginFilter')); + $filter = OCP\Util::mb_str_replace('%uid', $member, OC_LDAP::conf('ldapLoginFilter'), 'UTF-8'); $ldap_users = OC_LDAP::fetchListOfUsers($filter, 'dn'); if(count($ldap_users) < 1) { continue; |