summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/user_ldap.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-07-02 20:31:07 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-07-02 20:31:19 +0200
commit0a6f7b33c3b5e0552c041f3d529f577c0b392f40 (patch)
tree1f53d596245b37ef0d5b01586cf2aacce438a085 /apps/user_ldap/user_ldap.php
parent52822652bce0466895a6ee139d625439fddc240b (diff)
downloadnextcloud-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.php2
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;