From e0da20baba17b7f068946c8647fb6d67e77c39b7 Mon Sep 17 00:00:00 2001 From: "dkl%redhat.com" <> Date: Thu, 23 Oct 2008 02:54:56 +0000 Subject: Bug 455584 - Use bz_crypt everywhere instead of the crypt() function Patch by David Lawrence = r/a=LpSolit --- Bugzilla/Auth/Verify/DB.pm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'Bugzilla/Auth') diff --git a/Bugzilla/Auth/Verify/DB.pm b/Bugzilla/Auth/Verify/DB.pm index f2c008dbf..0f73063d2 100644 --- a/Bugzilla/Auth/Verify/DB.pm +++ b/Bugzilla/Auth/Verify/DB.pm @@ -53,14 +53,9 @@ sub check_credentials { "SELECT cryptpassword FROM profiles WHERE userid = ?", undef, $user_id); - # Wide characters cause crypt to die - if (Bugzilla->params->{'utf8'}) { - utf8::encode($password) if utf8::is_utf8($password); - } - # Using the internal crypted password as the salt, # crypt the password the user entered. - my $entered_password_crypted = crypt($password, $real_password_crypted); + my $entered_password_crypted = bz_crypt($password, $real_password_crypted); return { failure => AUTH_LOGINFAILED } if $entered_password_crypted ne $real_password_crypted; -- cgit v1.2.3-24-g4f1b