You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-08-06 06:42:37 +03: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:
@@ -1135,9 +1135,9 @@ function pacrypt ($pw, $pw_db="")
|
|||||||
}
|
}
|
||||||
|
|
||||||
elseif ($CONF['encrypt'] == 'system') {
|
elseif ($CONF['encrypt'] == 'system') {
|
||||||
if (preg_match("/\$1\$/", $pw_db)) {
|
if (ereg("\\$1\\$", $pw_db)) {
|
||||||
$split_salt = preg_split ('/\$/', $pw_db);
|
$split_salt = preg_split ('/\$/', $pw_db);
|
||||||
$salt = $split_salt[2];
|
$salt = "\$1\$${split_salt[2]}\$";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (strlen($pw_db) == 0) {
|
if (strlen($pw_db) == 0) {
|
||||||
|
Reference in New Issue
Block a user