davidmoten / subethasmtp

SubEtha SMTP is a Java library for receiving SMTP mail
Other
151 stars 40 forks source link

PlainAuthenticationHandlerFactory doesn't detect invalid Base64 string #140

Open teemulang opened 1 week ago

teemulang commented 1 week ago

PlainAuthenticationHandlerFactory expects Base64.getDecoder().decode(secret) to return null on failure, but actually an IllegalArgumentException is thrown. LoginAuthenticationHandlerFactory handles this correctly.

davidmoten commented 1 week ago

Thanks! I'll have a look