Commit 4656dca5 authored by akrherz's avatar akrherz

OF-477 Additional SASL fix related to PR 279

https://github.com/igniterealtime/Openfire/pull/279
parent d7dfd3b6
...@@ -343,9 +343,11 @@ public class SASLAuthentication { ...@@ -343,9 +343,11 @@ public class SASLAuthentication {
if (ss != null) { if (ss != null) {
boolean ssComplete = ss.isComplete(); boolean ssComplete = ss.isComplete();
String response = doc.getTextTrim(); String response = doc.getTextTrim();
if (!BASE64_ENCODED.matcher(response).matches()) { if (response.length() > 0){
authenticationFailed(session, Failure.INCORRECT_ENCODING); if (!BASE64_ENCODED.matcher(response).matches()) {
return Status.failed; authenticationFailed(session, Failure.INCORRECT_ENCODING);
return Status.failed;
}
} }
try { try {
if (ssComplete) { if (ssComplete) {
......
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