functions.inc.php

- replace ereg (introduced in r693) with preg_match


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@696 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
Christian Boltz 15 years ago
parent 345de9214c
commit e46f73fed2

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

Loading…
Cancel
Save