Skip to content

Commit

Permalink
Fix regression in LDAP fuzzy search where it always used prefix searc…
Browse files Browse the repository at this point in the history
…h instead (#5713)
  • Loading branch information
alecpl committed Mar 31, 2017
1 parent 13ae4d7 commit 19fcc35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ CHANGELOG Roundcube Webmail
- Fix/rephrase "unsaved changes" warning when cancelling a draft (#5610)
- Fix XSS issue in handling of a style tag inside of an svg element [CVE-2017-6820]
- Fix bug where settings/upload.inc could not be used by plugins (#5694)
- Fix regression in LDAP fuzzy search where it always used prefix search instead (#5713)

RELEASE 1.3-beta
----------------
Expand Down
2 changes: 1 addition & 1 deletion program/lib/Roundcube/rcube_ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ function search($fields, $value, $mode=0, $select=true, $nocount=false, $require
}

// 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
Expand Down

0 comments on commit 19fcc35

Please sign in to comment.