]> granicus.if.org Git - ejabberd/commitdiff
Fix piefxis import of vCard elements (#2514)
authorBadlop <badlop@process-one.net>
Wed, 11 Jul 2018 09:38:17 +0000 (11:38 +0200)
committerBadlop <badlop@process-one.net>
Wed, 11 Jul 2018 10:56:38 +0000 (12:56 +0200)
src/ejabberd_piefxis.erl

index 32828475d5bc3a5972e6a2d161203c5f7246e7ca..591b8dde0ed807585ed271ca01e37143fe4f9bd3 100644 (file)
@@ -435,7 +435,7 @@ process_user_el(#xmlel{name = Name, attrs = Attrs, children = Els} = El,
            {<<"query">>, ?NS_PRIVATE} ->
                process_private(xmpp:decode(El), State);
            {<<"vCard">>, ?NS_VCARD} ->
-               process_vcard(El, State);
+               process_vcard(xmpp:decode(El), State);
            {<<"offline-messages">>, NS} ->
                Msgs = [xmpp:decode(E, NS, [ignore_els]) || E <- Els],
                process_offline_msgs(Msgs, State);