summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-03-13 11:49:34 +0100
committerThomas Bruederli <thomas@roundcube.net>2013-03-13 11:49:34 +0100
commit03c73fa1c59812d95c843ff63aa692a54521f264 (patch)
treee547cb776722cb365adf53598018edefed67dfa5 /program/lib
parent807c3d0d9745e850d08ceb2a1d6c018f8b791706 (diff)
Also use VLV for filter prefix matches
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/Roundcube/rcube_ldap_generic.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_ldap_generic.php b/program/lib/Roundcube/rcube_ldap_generic.php
index c5ea4ea4c..86c3607a0 100644
--- a/program/lib/Roundcube/rcube_ldap_generic.php
+++ b/program/lib/Roundcube/rcube_ldap_generic.php
@@ -841,7 +841,7 @@ class rcube_ldap_generic
if ($vlv = $vlv_config[$base_dn]) {
$this->_debug("D: Found a VLV for base_dn: " . $base_dn);
- if ($vlv['filter'] == strtolower($filter)) {
+ if ($vlv['filter'] == strtolower($filter) || stripos($filter, '(&'.$vlv['filter'].'(') === 0) {
$this->_debug("D: Filter matches");
if ($vlv['scope'] == $scope) {
// Not passing any sort attributes means you don't care