diff options
-rw-r--r-- | src/mod_vcard_ldap.erl | 6 |
1 files changed, 4 insertions, 2 deletions
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). |