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:
parent
fd54181435
commit
ed79a61752
@ -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()}].
|
||||||
|
Loading…
Reference in New Issue
Block a user