summaryrefslogtreecommitdiffstats
path: root/userprefs.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-xuserprefs.cgi7
1 files changed, 1 insertions, 6 deletions
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");
}