1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 14:02:06 +01:00

Fix for SMACK-224.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@8503 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2007-06-07 17:35:26 +00:00 committed by matt
parent 560e891cec
commit 0971f5fffd

View file

@ -43,7 +43,9 @@ public class SASLPlainMechanism extends SASLMechanism {
// Build the text containing the "authorization identity" + NUL char +
// "authentication identity" + NUL char + "clear-text password"
StringBuilder text = new StringBuilder();
text.append(username).append("@").append(host);
// Commented out line below due to SMACK-224. This part of PLAIN auth seems to be
// optional, and just removing it should increase compatability.
// text.append(username).append("@").append(host);
text.append('\0');
text.append(username);
text.append('\0');