mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Don't try regexp on sn missing salt
This commit is contained in:
@@ -171,7 +171,7 @@ sub encrypt_blowfish
|
||||
my ($passwd, $salt) = @_;
|
||||
my ($plain, $base64) = ("", "");
|
||||
eval "use Crypt::Eksblowfish::Bcrypt";
|
||||
if ($salt !~ /^\$2a\$/) {
|
||||
if ($salt && $salt !~ /^\$2a\$/) {
|
||||
# Invalid salt for Blowfish
|
||||
$salt = undef;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user