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
{
$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) {
// POP3 validation hack
$bResult = '+OK ' === \substr(\trim($this->sResponseBuffer), 0, 4);
$bResult = '+OK ' === \substr(\trim($sResponseBuffer), 0, 4);
}
if (!$bResult) {

View file

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