]> granicus.if.org Git - ejabberd/commitdiff
Don't handle internally an IQ vCard if destination is full JID (EJAB-1045)
authorBadlop <badlop@process-one.net>
Tue, 1 Dec 2009 19:59:59 +0000 (19:59 +0000)
committerBadlop <badlop@process-one.net>
Tue, 1 Dec 2009 19:59:59 +0000 (19:59 +0000)
SVN Revision: 2766

src/ejabberd_c2s.erl

index 8ca5f5c487f323d4ae63e883441e152207c97fad..87a83992f67098842911d2c8833a6443114cd0d6 100644 (file)
@@ -1220,7 +1220,7 @@ handle_info({route, From, To, Packet}, StateName, StateData) ->
            "iq" ->
                IQ = jlib:iq_query_info(Packet),
                case IQ of
-                   #iq{xmlns = ?NS_VCARD} ->
+                   #iq{xmlns = ?NS_VCARD} when (To#jid.luser == "") or (To#jid.lresource == "") ->
                        Host = StateData#state.server,
                        case ets:lookup(sm_iqtable, {?NS_VCARD, Host}) of
                            [{_, Module, Function, Opts}] ->