mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
fix crypt() usage - see https://sourceforge.net/tracker/?func=detail&aid=2814820&group_id=191583&atid=937964 ; thanks for the patch
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@693 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
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…
Reference in New Issue
Block a user