From fc0209fec94f39993c7b9725e698005271310ea1 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Fri, 31 Jul 2009 06:32:24 +0000 Subject: fixes incorrect substitution of an LDAP pattern SVN Revision: 2414 --- src/mod_vcard_ldap.erl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mod_vcard_ldap.erl b/src/mod_vcard_ldap.erl index 0e8541067..48a2874b5 100644 --- a/src/mod_vcard_ldap.erl +++ b/src/mod_vcard_ldap.erl @@ -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). -- cgit v1.2.3