Commit 4069dc7e authored by Matt Tucker's avatar Matt Tucker Committed by matt

Escape username before returning user.

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@2702 b35dd754-fafc-0310-a699-88a17e54d16e
parent c53e6c45
......@@ -84,6 +84,8 @@ public class LdapUserProvider implements UserProvider {
if (emailField != null) {
email = (String)emailField.get();
}
// Escape the username so that it can be used as a JID.
username = JID.escapeNode(username);
return new User(username, name, email, new Date(), new Date());
}
catch (Exception e) {
......
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