From 6b16e0d59348cf24a8de52e0f85f4b55b0465d72 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 31 Mar 2017 09:45:21 +0200 Subject: [PATCH] Fix regression in LDAP fuzzy search where it always used prefix search instead (#5713) --- CHANGELOG | 2 ++ program/lib/Roundcube/rcube_ldap.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index f97c54724..483816c0d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,8 @@ CHANGELOG Roundcube Webmail =========================== +- Fix regression in LDAP fuzzy search where it always used prefix search instead (#5713) + RELEASE 1.1.8 ------------- - Fix bug where mail content frame couldn't be reset in some corner cases (#5608) diff --git a/program/lib/Roundcube/rcube_ldap.php b/program/lib/Roundcube/rcube_ldap.php index ed91797fe..05dfbf7cc 100644 --- a/program/lib/Roundcube/rcube_ldap.php +++ b/program/lib/Roundcube/rcube_ldap.php @@ -826,7 +826,7 @@ class rcube_ldap extends rcube_addressbook } // compose a full-text-like search filter - $filter = rcube_ldap_generic::fulltext_search_filter($value, $attributes, $mode); + $filter = rcube_ldap_generic::fulltext_search_filter($value, $attributes, $mode & ~rcube_addressbook::SEARCH_GROUPS); } // add required (non empty) fields filter