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/user_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/user_ldap.php')
-rw-r--r-- | apps/user_ldap/user_ldap.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index 85b3d88973c..b51d9a55cc7 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -84,7 +84,7 @@ class OC_USER_LDAP extends OC_User_Backend { */ public function checkPassword($uid, $password){ //find out dn of the user name - $filter = str_replace('%uid', $uid, OC_LDAP::conf('ldapLoginFilter')); + $filter = OCP\Util::mb_str_replace('%uid', $uid, OC_LDAP::conf('ldapLoginFilter'), 'UTF-8'); $ldap_users = OC_LDAP::fetchListOfUsers($filter, 'dn'); if(count($ldap_users) < 1) { return false; |