24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-07-14 23:44:18 +02:00

clean p1:pushed tag (thanks to Mickael Remond)

This commit is contained in:
Alexey Shchepin 2010-08-19 15:53:44 +03:00
parent 8fe6ed011d
commit ea8aa1f25b

View File

@ -2741,8 +2741,9 @@ enqueue(StateData, From, To, Packet) ->
StateData#state{pres_queue = NewQueue}
end;
true ->
CleanPacket = xml:remove_subtags(Packet, "x", {"xmlns", ?NS_P1_PUSHED}),
Packet2 =
case Packet of
case CleanPacket of
{xmlelement, "message" = Name, Attrs, Els} ->
{xmlelement, Name, Attrs,
Els ++