Commit 3efb34fb authored by Günther Niess's avatar Günther Niess Committed by niess

OF-59: Handle trailing spaces more gracefully

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11495 b35dd754-fafc-0310-a699-88a17e54d16e
parent 42000829
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
else { else {
String username = JID.escapeNode(userJID.substring(0, userJID.indexOf('@'))); String username = JID.escapeNode(userJID.substring(0, userJID.indexOf('@')));
String rest = userJID.substring(userJID.indexOf('@'), userJID.length()); String rest = userJID.substring(userJID.indexOf('@'), userJID.length());
userJID = username + rest; userJID = username + rest.trim();
} }
IQ iq = new IQ(IQ.Type.set); IQ iq = new IQ(IQ.Type.set);
if ("owner".equals(affiliation) || "admin".equals(affiliation)) { if ("owner".equals(affiliation) || "admin".equals(affiliation)) {
......
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