Fix "wide character in subroutine entry"

beta
Vitaliy Filippov 2017-12-29 14:44:58 +03:00
parent e395f89f73
commit 5f396a2d77
1 changed files with 6 additions and 6 deletions

View File

@ -625,15 +625,15 @@ sub bz_crypt
$algorithm = $1;
}
# Wide characters cause crypt to die
if (Bugzilla->params->{utf8})
{
utf8::encode($password) if utf8::is_utf8($password);
}
my $crypted_password;
if (!$algorithm)
{
# Wide characters cause crypt to die
if (Bugzilla->params->{utf8})
{
utf8::encode($password) if utf8::is_utf8($password);
}
# Crypt the password.
$crypted_password = crypt($password, $salt);