26
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Fix LDAP substrings filter (EJAB-1715)

This commit is contained in:
Evgeniy Khramtsov 2015-04-21 11:49:41 +03:00
parent fd54181435
commit ed79a61752

View File

@ -507,16 +507,14 @@ present(Attribute) ->
-type substr() :: [{initial | any | final, binary()}]. -type substr() :: [{initial | any | final, binary()}].
-type 'SubstringFilter'() :: -type 'SubstringFilter'() ::
#'SubstringFilter'{type :: binary(), #'SubstringFilter'{type :: binary(),
substrings :: {'SubstringFilter_substrings', substrings :: substr()}.
substr()}}.
-type substrings() :: {substrings, 'SubstringFilter'()}. -type substrings() :: {substrings, 'SubstringFilter'()}.
-spec substrings(binary(), substr()) -> substrings(). -spec substrings(binary(), substr()) -> substrings().
substrings(Type, SubStr) -> substrings(Type, SubStr) ->
Ss = {'SubstringFilter_substrings', SubStr},
{substrings, {substrings,
#'SubstringFilter'{type = Type, substrings = Ss}}. #'SubstringFilter'{type = Type, substrings = SubStr}}.
-type match_opts() :: [{matchingRule | type, binary()} | -type match_opts() :: [{matchingRule | type, binary()} |
{dnAttributes, boolean()}]. {dnAttributes, boolean()}].