mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Don't handle internally an IQ vCard if destination is full JID (EJAB-1045)
SVN Revision: 2769
This commit is contained in:
parent
bc355eebaa
commit
f7b5afec51
@ -1175,8 +1175,10 @@ handle_info({route, From, To, Packet}, StateName, StateData) ->
|
|||||||
#xmlel{attrs = Attrs} when ?IS_IQ(Packet) ->
|
#xmlel{attrs = Attrs} when ?IS_IQ(Packet) ->
|
||||||
case exmpp_iq:is_request(Packet) of
|
case exmpp_iq:is_request(Packet) of
|
||||||
true ->
|
true ->
|
||||||
|
ToNode = exmpp_jid:node(To),
|
||||||
|
ToResource = exmpp_jid:resource(To),
|
||||||
case exmpp_iq:get_request(Packet) of
|
case exmpp_iq:get_request(Packet) of
|
||||||
#xmlel{ns = ?NS_VCARD} ->
|
#xmlel{ns = ?NS_VCARD} when (ToNode == <<"">>) or (ToResource == <<"">>) ->
|
||||||
Host = StateData#state.server,
|
Host = StateData#state.server,
|
||||||
case ets:lookup(sm_iqtable, {?NS_VCARD, Host}) of
|
case ets:lookup(sm_iqtable, {?NS_VCARD, Host}) of
|
||||||
[{_, Module, Function, Opts}] ->
|
[{_, Module, Function, Opts}] ->
|
||||||
|
Loading…
Reference in New Issue
Block a user