summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/group_ldap.php
diff options
context:
space:
mode:
authorblizzz <blizzz@owncloud.com>2015-07-16 11:35:25 +0200
committerblizzz <blizzz@owncloud.com>2015-07-16 11:35:25 +0200
commitbfb90d10edfc863213522c704f7d0b8bad8c8646 (patch)
treec5db88dab3beb85fb320d7249b8f436dd5f20e14 /apps/user_ldap/group_ldap.php
parentdce462c28db1d5e5b144efcfb26a466bd290621c (diff)
parent472d48f6e32168bb7309a4869e469eb305d95f14 (diff)
downloadnextcloud-server-bfb90d10edfc863213522c704f7d0b8bad8c8646.tar.gz
nextcloud-server-bfb90d10edfc863213522c704f7d0b8bad8c8646.zip
Merge pull request #17046 from nicolas-grekas/fix-16654
Do not use OC*::mb_*_replace(), they are useless
Diffstat (limited to 'apps/user_ldap/group_ldap.php')
-rw-r--r--apps/user_ldap/group_ldap.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php
index a7a90c75832..1b83817151c 100644
--- a/apps/user_ldap/group_ldap.php
+++ b/apps/user_ldap/group_ldap.php
@@ -520,8 +520,7 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface {
if($isMemberUid) {
//we got uids, need to get their DNs to 'translate' them to user names
$filter = $this->access->combineFilterWithAnd(array(
- \OCP\Util::mb_str_replace('%uid', $member,
- $this->access->connection->ldapLoginFilter, 'UTF-8'),
+ str_replace('%uid', $member, $this->access->connection->ldapLoginFilter),
$this->access->getFilterPartForUserSearch($search)
));
$ldap_users = $this->access->fetchListOfUsers($filter, 'dn');
@@ -610,8 +609,7 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface {
if($isMemberUid) {
//we got uids, need to get their DNs to 'translate' them to user names
$filter = $this->access->combineFilterWithAnd(array(
- \OCP\Util::mb_str_replace('%uid', $member,
- $this->access->connection->ldapLoginFilter, 'UTF-8'),
+ str_replace('%uid', $member, $this->access->connection->ldapLoginFilter),
$this->access->getFilterPartForUserSearch($search)
));
$ldap_users = $this->access->fetchListOfUsers($filter, 'dn');