Bug 1003852: Digest::SHA 5.82 and newer always croak on wide characters, preventing users with Unicode passwords from logging in
r/a=glob git-svn-id: svn://10.0.0.236/trunk@265398 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ea8005b4db
commit
9fd83c37bb
@ -1 +1 @@
|
||||
9028
|
||||
9029
|
||||
@ -1 +1 @@
|
||||
70e8ab711072845b5a39394268e70a88729e9d9a
|
||||
d694e688d2b129e6091ee5045066f09f4578f14e
|
||||
@ -624,13 +624,13 @@ sub bz_crypt {
|
||||
$algorithm = $1;
|
||||
}
|
||||
|
||||
my $crypted_password;
|
||||
if (!$algorithm) {
|
||||
# Wide characters cause crypt to die
|
||||
# Wide characters cause crypt and Digest to die.
|
||||
if (Bugzilla->params->{'utf8'}) {
|
||||
utf8::encode($password) if utf8::is_utf8($password);
|
||||
}
|
||||
|
||||
my $crypted_password;
|
||||
if (!$algorithm) {
|
||||
# Crypt the password.
|
||||
$crypted_password = crypt($password, $salt);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user