Commit c0073608 authored by guus's avatar guus

OF-527: Don't parse non-existing JIDs.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@12990 b35dd754-fafc-0310-a699-88a17e54d16e
parent 728deb44
...@@ -80,8 +80,10 @@ ...@@ -80,8 +80,10 @@
JID bareJID = null; JID bareJID = null;
try { try {
// do validation if (userJID != null && userJID.trim().length() > 0) {
bareJID = new JID(new JID(userJID).toBareJID()); // do validation
bareJID = new JID(new JID(userJID.trim()).toBareJID());
}
} catch (java.lang.IllegalArgumentException ex) { } catch (java.lang.IllegalArgumentException ex) {
errors.put("userJID","userJID"); errors.put("userJID","userJID");
} }
......
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