Commit 2b7ae309 authored by csh's avatar csh

OF-733 OF should not silently close a connection, when receiving a message without 'to' attribute

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13961 b35dd754-fafc-0310-a699-88a17e54d16e
parent 4a51ad92
......@@ -90,7 +90,7 @@ public class MessageRouter extends BasicModule {
// If the server receives a message stanza with no 'to' attribute, it MUST treat the message as if the 'to' address were the bare JID <localpart@domainpart> of the sending entity.
if (recipientJID == null) {
recipientJID = packet.getFrom();
recipientJID = packet.getFrom().asBareJID();
}
// Check if the message was sent to the server hostname
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment