From ce3fa18fb6fbdbd1162fc2799512c5572bc0710b Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Fri, 31 Jul 2009 06:43:17 +0000 Subject: [PATCH] fixes incorrect substitution of an LDAP pattern SVN Revision: 2415 --- src/mod_vcard_ldap.erl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mod_vcard_ldap.erl b/src/mod_vcard_ldap.erl index b4d17feed..a5177344e 100644 --- a/src/mod_vcard_ldap.erl +++ b/src/mod_vcard_ldap.erl @@ -629,8 +629,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).