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 'SubstringFilter'() ::
|
||||
#'SubstringFilter'{type :: binary(),
|
||||
substrings :: {'SubstringFilter_substrings',
|
||||
substr()}}.
|
||||
substrings :: substr()}.
|
||||
|
||||
-type substrings() :: {substrings, 'SubstringFilter'()}.
|
||||
-spec substrings(binary(), substr()) -> substrings().
|
||||
|
||||
substrings(Type, SubStr) ->
|
||||
Ss = {'SubstringFilter_substrings', SubStr},
|
||||
{substrings,
|
||||
#'SubstringFilter'{type = Type, substrings = Ss}}.
|
||||
#'SubstringFilter'{type = Type, substrings = SubStr}}.
|
||||
|
||||
-type match_opts() :: [{matchingRule | type, binary()} |
|
||||
{dnAttributes, boolean()}].
|
||||
|
Loading…
Reference in New Issue
Block a user