summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-04-09 08:54:07 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-04-09 08:54:07 +0200
commit8d956fd455fd6306fd323e541f20f4ece8437fbe (patch)
tree89853d87f7a7145aee46b882b381fe3523755f82 /program
parentc7357ea32010ecd7f11b8df1e64abece403ec034 (diff)
Apply user-spefici replacements to group's base_dn property (#1489779)
Diffstat (limited to 'program')
-rw-r--r--program/lib/Roundcube/rcube_ldap.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/program/lib/Roundcube/rcube_ldap.php b/program/lib/Roundcube/rcube_ldap.php
index de3790e5c..b3872e26b 100644
--- a/program/lib/Roundcube/rcube_ldap.php
+++ b/program/lib/Roundcube/rcube_ldap.php
@@ -377,10 +377,11 @@ class rcube_ldap extends rcube_addressbook
// replace placeholders in filter settings
if (!empty($this->prop['filter']))
$this->prop['filter'] = strtr($this->prop['filter'], $replaces);
- if (!empty($this->prop['groups']['filter']))
- $this->prop['groups']['filter'] = strtr($this->prop['groups']['filter'], $replaces);
- if (!empty($this->prop['groups']['member_filter']))
- $this->prop['groups']['member_filter'] = strtr($this->prop['groups']['member_filter'], $replaces);
+
+ foreach (array('base_dn','filter','member_filter') as $k) {
+ if (!empty($this->prop['groups'][$k]))
+ $this->prop['groups'][$k] = strtr($this->prop['groups'][$k], $replaces);
+ }
if (!empty($this->prop['group_filters'])) {
foreach ($this->prop['group_filters'] as $i => $gf) {