diff --git a/mozilla/webtools/bugzilla/CGI.pl b/mozilla/webtools/bugzilla/CGI.pl index ad15503bf8a..a0a64fdad93 100644 --- a/mozilla/webtools/bugzilla/CGI.pl +++ b/mozilla/webtools/bugzilla/CGI.pl @@ -385,7 +385,7 @@ sub confirm_login { if (defined $::FORM{"PleaseMailAPassword"}) { my $realpwd; if ($realcryptpwd eq "") { - $realpwd = InsertNewUser($enteredlogin); + $realpwd = InsertNewUser($enteredlogin, ""); } else { SendSQL("select password from profiles where login_name = " . SqlQuote($enteredlogin)); diff --git a/mozilla/webtools/bugzilla/changepassword.cgi b/mozilla/webtools/bugzilla/changepassword.cgi index da9429b8ab0..66dff014bd5 100755 --- a/mozilla/webtools/bugzilla/changepassword.cgi +++ b/mozilla/webtools/bugzilla/changepassword.cgi @@ -33,9 +33,11 @@ if (! defined $::FORM{'pwd1'}) { if (Param('useqacontact')) { $qacontactpart = ", the current QA Contact"; } - SendSQL("select emailnotification from profiles where login_name = " . - SqlQuote($::COOKIE{'Bugzilla_login'})); - my ($emailnotification) = (FetchSQLData()); + my $loginname = SqlQuote($::COOKIE{'Bugzilla_login'}); + SendSQL("select emailnotification,realname from profiles where login_name = " . + $loginname); + my ($emailnotification, $realname) = (FetchSQLData()); + $realname = value_quote($realname); print qq{