diff options
author | Evgeniy Khramtsov <xramtsov@gmail.com> | 2009-07-31 06:32:24 +0000 |
---|---|---|
committer | Evgeniy Khramtsov <xramtsov@gmail.com> | 2009-07-31 06:32:24 +0000 |
commit | fc0209fec94f39993c7b9725e698005271310ea1 (patch) | |
tree | 20ccaa1d092570cd3a51a99b20831c68bbcfe2b2 /src | |
parent | deny node creation if node owner is not owner of parent node as well (diff) |
fixes incorrect substitution of an LDAP pattern
SVN Revision: 2414
Diffstat (limited to 'src')
-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). |