Merge branch 'master' of github.com:nodemailer/wildduck

This commit is contained in:
Andris Reinman 2022-11-18 22:24:37 +02:00
commit 1680a12edf
No known key found for this signature in database
GPG key ID: DC6C83F4D584D364

View file

@ -881,7 +881,7 @@ class POP3Connection extends EventEmitter {
}
authPlain(plain, next) {
if (!/^[a-zA-Z0-9+/]+=+?$/.test(plain)) {
if (!/^(?:[a-zA-Z0-9+/]{4})*(?:(?:[a-zA-Z0-9+/]{3}=)|(?:[a-zA-Z0-9+/]{2}==))?$/.test(plain)) {
this.send('-ERR malformed command');
return next();
}