This commit is contained in:
the-djmaze 2023-12-08 21:48:03 +01:00
parent 9d7f93f304
commit 91a505ea02
2 changed files with 5 additions and 5 deletions

View file

@ -152,13 +152,13 @@ class ChangePasswordPoppassdDriver extends \MailSo\Net\NetClient
private function validateResponse(bool $bAuthRequestValidate = false) : self private function validateResponse(bool $bAuthRequestValidate = false) : self
{ {
$this->getNextBuffer(); $sResponseBuffer = $this->getNextBuffer();
$bResult = \preg_match($bAuthRequestValidate ? '/^[23]\d\d/' : '/^2\d\d/', trim($this->sResponseBuffer)); $bResult = \preg_match($bAuthRequestValidate ? '/^[23]\d\d/' : '/^2\d\d/', \trim($sResponseBuffer));
if (!$bResult) { if (!$bResult) {
// POP3 validation hack // POP3 validation hack
$bResult = '+OK ' === \substr(\trim($this->sResponseBuffer), 0, 4); $bResult = '+OK ' === \substr(\trim($sResponseBuffer), 0, 4);
} }
if (!$bResult) { if (!$bResult) {

View file

@ -6,8 +6,8 @@ class ChangePasswordPoppassdPlugin extends \RainLoop\Plugins\AbstractPlugin
{ {
const const
NAME = 'Change Password Poppassd', NAME = 'Change Password Poppassd',
VERSION = '2.19', VERSION = '2.20',
RELEASE = '2023-06-05', RELEASE = '2023-12-08',
REQUIRED = '2.28.0', REQUIRED = '2.28.0',
CATEGORY = 'Security', CATEGORY = 'Security',
DESCRIPTION = 'Extension to allow users to change their passwords through Poppassd'; DESCRIPTION = 'Extension to allow users to change their passwords through Poppassd';