Commit 555bb8d8 authored by David Smith's avatar David Smith Committed by david

Change needed for CS-6441. r=Armando, Daniel

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10612 b35dd754-fafc-0310-a699-88a17e54d16e
parent 08f67b18
...@@ -4,6 +4,7 @@ import org.dom4j.Element; ...@@ -4,6 +4,7 @@ import org.dom4j.Element;
import static org.jivesoftware.openfire.clearspace.ClearspaceManager.HttpType.GET; import static org.jivesoftware.openfire.clearspace.ClearspaceManager.HttpType.GET;
import org.jivesoftware.util.Log; import org.jivesoftware.util.Log;
import org.jivesoftware.util.StringUtils; import org.jivesoftware.util.StringUtils;
import org.xmpp.packet.JID;
import javax.security.sasl.SaslException; import javax.security.sasl.SaslException;
import javax.security.sasl.SaslServer; import javax.security.sasl.SaslServer;
...@@ -69,6 +70,12 @@ public class ClearspaceSaslServer implements SaslServer { ...@@ -69,6 +70,12 @@ public class ClearspaceSaslServer implements SaslServer {
jid = tokens.nextToken(); jid = tokens.nextToken();
int atIndex = jid.lastIndexOf("@");
String node = jid.substring(0, atIndex);
jid = JID.escapeNode(node) + "@" + jid.substring(atIndex + 1);
try { try {
responseStr = StringUtils.encodeBase64(responseStr); responseStr = StringUtils.encodeBase64(responseStr);
Element resultElement = Element resultElement =
......
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