Commit 316d55a4 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Encode success data. JM-784

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4601 b35dd754-fafc-0310-a699-88a17e54d16e
parent c5e486a3
......@@ -406,7 +406,8 @@ public class SASLAuthentication {
StringBuilder reply = new StringBuilder(80);
reply.append("<success xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\"");
if (successData != null) {
reply.append(">").append(successData).append("</success>");
String successData_b64 = StringUtils.encodeBase64(successData).trim();
reply.append(">").append(successData_b64).append("</success>");
}
else {
reply.append("/>");
......
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