Commit a16a047b authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Escape username when populating group and username is already a JID. Potential fix for JM-695.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4313 b35dd754-fafc-0310-a699-88a17e54d16e
parent b647478c
...@@ -487,7 +487,8 @@ public class LdapGroupProvider implements GroupProvider { ...@@ -487,7 +487,8 @@ public class LdapGroupProvider implements GroupProvider {
} }
else { else {
// This is a JID of a component or node of a server's component // This is a JID of a component or node of a server's component
userJID = new JID(username); String escapedUsername = JID.escapeNode(username);
userJID = new JID(escapedUsername);
} }
members.add(userJID); members.add(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