24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-02 21:17:12 +02:00

fixes incorrect substitution of an LDAP pattern

SVN Revision: 2414
This commit is contained in:
Evgeniy Khramtsov 2009-07-31 06:32:24 +00:00
parent 6bd9bac716
commit fc0209fec9

View File

@ -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).