Merge pull request #1468 from M66B/master

Fixed managesieve plain login
This commit is contained in:
RainLoop Team 2017-07-11 15:42:03 +03:00 committed by GitHub
commit 52af4dacda

View file

@ -166,8 +166,7 @@ class ManageSieveClient extends \MailSo\Net\NetClient
{
$sAuth = \base64_encode($sLoginAuthKey."\0".$sLogin."\0".$sPassword);
$this->sendRequest('AUTHENTICATE "PLAIN" {'.\strlen($sAuth).'+}');
$this->sendRequest($sAuth);
$this->sendRequest('AUTHENTICATE "PLAIN" "'.$sAuth.'"');
$mResponse = $this->parseResponse();
$this->validateResponse($mResponse);