Browse Source

capitalise mechanisms

pull/491/head
David Goodwin 4 years ago
parent
commit
1be8386e58
  1. 7
      functions.inc.php

7
functions.inc.php

@ -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…
Cancel
Save