From 1a63ee6c5d409c9c974eeed84755ee355b500bce Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Tue, 11 May 2021 22:05:36 +0100 Subject: [PATCH] might fix tests --- model/PFACrypt.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model/PFACrypt.php b/model/PFACrypt.php index 7f4a21ca..a43edfc0 100644 --- a/model/PFACrypt.php +++ b/model/PFACrypt.php @@ -150,11 +150,11 @@ class PFACrypt } - if (preg_match("/^dovecot:/", $algorithm)) { + if (preg_match("/^DOVECOT:/", $algorithm)) { return _pacrypt_dovecot($pw, $pw_db); } - if (substr($algorithm, 0, 9) === 'php_crypt') { + if (substr($algorithm, 0, 9) === 'PHP_CRYPT') { return _pacrypt_php_crypt($pw, $pw_db); }