git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@693 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 16 years ago
parent ad62c5e450
commit f1fc057f43

@ -1135,9 +1135,9 @@ function pacrypt ($pw, $pw_db="")
}
elseif ($CONF['encrypt'] == 'system') {
if (preg_match("/\$1\$/", $pw_db)) {
if (ereg("\\$1\\$", $pw_db)) {
$split_salt = preg_split ('/\$/', $pw_db);
$salt = $split_salt[2];
$salt = "\$1\$${split_salt[2]}\$";
}
else {
if (strlen($pw_db) == 0) {

Loading…
Cancel
Save