Commit aeefb10d authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Added the space character, the tab character, the newline character, the...

Added the space character, the tab character, the newline character, the carriage-return character and the form-feed character as valid username separators.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1120 b35dd754-fafc-0310-a699-88a17e54d16e
parent 578d5881
......@@ -97,9 +97,9 @@
}
if (users.length() > 0){
StringTokenizer tokenizer = new StringTokenizer(users, ",");
StringTokenizer tokenizer = new StringTokenizer(users, ", \t\n\r\f");
while (tokenizer.hasMoreTokens()) {
String username = tokenizer.nextToken().trim();
String username = tokenizer.nextToken();
try {
UserManager.getInstance().getUser(username);
newGroup.getMembers().add(username);
......
......@@ -138,7 +138,7 @@
return;
}
else if (add && users != null) {
StringTokenizer tokenizer = new StringTokenizer(users, ",");
StringTokenizer tokenizer = new StringTokenizer(users, ", \t\n\r\f");
int count = 0;
while (tokenizer.hasMoreTokens()) {
String username = tokenizer.nextToken();
......@@ -195,9 +195,9 @@
String glist = group.getProperties().get("sharedRoster.groupList");
List l = new ArrayList();
if (glist != null) {
StringTokenizer tokenizer = new StringTokenizer(glist,",");
StringTokenizer tokenizer = new StringTokenizer(glist,", \t\n\r\f");
while (tokenizer.hasMoreTokens()) {
String tok = tokenizer.nextToken().trim();
String tok = tokenizer.nextToken();
l.add(tok.trim());
}
}
......
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