mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Resolve #1356
This commit is contained in:
parent
9d7f93f304
commit
91a505ea02
2 changed files with 5 additions and 5 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue