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 --- userprefs.cgi | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'userprefs.cgi') diff --git a/userprefs.cgi b/userprefs.cgi index 24a6a5699..4ce0f5715 100755 --- a/userprefs.cgi +++ b/userprefs.cgi @@ -92,12 +92,7 @@ sub SaveAccount { my $oldpassword = $cgi->param('Bugzilla_password'); - # Wide characters cause crypt to die - if (Bugzilla->params->{'utf8'}) { - utf8::encode($oldpassword) if utf8::is_utf8($oldpassword); - } - - if (crypt($oldpassword, $oldcryptedpwd) ne $oldcryptedpwd) + if (bz_crypt($oldpassword, $oldcryptedpwd) ne $oldcryptedpwd) { ThrowUserError("old_password_incorrect"); } -- cgit v1.2.3-24-g4f1b