mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
fixes incorrect substitution of an LDAP pattern
SVN Revision: 2414
This commit is contained in:
parent
6bd9bac716
commit
fc0209fec9
@ -643,8 +643,10 @@ map_vcard_attr(VCardName, Attributes, Pattern, UD) ->
|
||||
end.
|
||||
|
||||
process_pattern(Str, {User, Domain}, AttrValues) ->
|
||||
eldap_filter:do_sub(Str,
|
||||
[{"%s", V, 1} || V <- AttrValues] ++ [{"%u", User},{"%d", Domain}]).
|
||||
eldap_filter:do_sub(
|
||||
Str,
|
||||
[{"%u", User},{"%d", Domain}] ++
|
||||
[{"%s", V, 1} || V <- AttrValues]).
|
||||
|
||||
find_xdata_el({xmlelement, _Name, _Attrs, SubEls}) ->
|
||||
find_xdata_el1(SubEls).
|
||||
|
Loading…
Reference in New Issue
Block a user