mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
capitalise mechanisms
This commit is contained in:
parent
8ca6f718b2
commit
1be8386e58
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user