functions.inc.php: stupid syntax error; thanks David Verdier

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@686 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 15 years ago
parent b381393e7a
commit 9af0d53318

@ -1171,7 +1171,7 @@ function pacrypt ($pw, $pw_db="")
elseif ($CONF['encrypt'] == 'authlib') {
$flavor = $CONF['authlib_default_flavor'];
$salt = substr(create_salt(), 0, 2); # courier-authlib supports only two-character salts
if(preg_match'/^{.*}/', $pw_db)) {
if(preg_match('/^{.*}/', $pw_db)) {
// we have a flavor in the db -> use it instead of default flavor
$result = split('{|}', $pw_db, 3);
$flavor = $result[1];

Loading…
Cancel
Save