Fix "wide character in subroutine entry"
parent
e395f89f73
commit
5f396a2d77
|
@ -625,15 +625,15 @@ sub bz_crypt
|
||||||
$algorithm = $1;
|
$algorithm = $1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Wide characters cause crypt to die
|
||||||
|
if (Bugzilla->params->{utf8})
|
||||||
|
{
|
||||||
|
utf8::encode($password) if utf8::is_utf8($password);
|
||||||
|
}
|
||||||
|
|
||||||
my $crypted_password;
|
my $crypted_password;
|
||||||
if (!$algorithm)
|
if (!$algorithm)
|
||||||
{
|
{
|
||||||
# Wide characters cause crypt to die
|
|
||||||
if (Bugzilla->params->{utf8})
|
|
||||||
{
|
|
||||||
utf8::encode($password) if utf8::is_utf8($password);
|
|
||||||
}
|
|
||||||
|
|
||||||
# Crypt the password.
|
# Crypt the password.
|
||||||
$crypted_password = crypt($password, $salt);
|
$crypted_password = crypt($password, $salt);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue