mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Fix support for contemporary salts
This commit is contained in:
@@ -11001,7 +11001,7 @@ string.
|
||||
sub unix_crypt
|
||||
{
|
||||
my ($pass, $salt) = @_;
|
||||
return "" if ($salt !~ /^[a-zA-Z0-9\.\/]{2}/); # same as real crypt
|
||||
return "" if ($salt !~ /^[\$a-zA-Z0-9\.\/]{2}/); # same as real crypt
|
||||
my $rv = eval "crypt(\$pass, \$salt)";
|
||||
my $err = $@;
|
||||
return $rv if ($rv && !$@);
|
||||
|
||||
Reference in New Issue
Block a user