0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

capitalise mechanisms

This commit is contained in:
David Goodwin 2021-07-11 21:53:06 +01:00
parent 8ca6f718b2
commit 1be8386e58

View File

@ -1303,6 +1303,13 @@ function pacrypt($pw, $pw_db = "")
$mechanism = 'SHA512-CRYPT';
}
if(preg_match('/^dovecot:(.*)$/i', $mechanism, $matches)) {
$mechanism = strtoupper($matches[1]);
}
if(preg_match('/^courier:(.*)$/i', $mechanism, $matches)) {
$mechanism = strtoupper($mechanism);
}
if (empty($pw_db)) {
$pw_db = null;
}