summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-09-28 07:22:23 +0200
committerterry%mozilla.org <>1999-09-28 07:22:23 +0200
commit2dff792d06f67fb76382b59a5dbe6d3ad601be89 (patch)
treee3c2902631d7b459ae004399ebc67d9dcbab0161 /CGI.pl
parent92cee2c383c4e44693b69ed45390af31b4aca09d (diff)
downloadbugzilla-2dff792d06f67fb76382b59a5dbe6d3ad601be89.tar.gz
bugzilla-2dff792d06f67fb76382b59a5dbe6d3ad601be89.tar.xz
Patch by holger@holger.om.org (Holger Schurig) -- was displaying header twice in some cases.
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/CGI.pl b/CGI.pl
index 0d9762b22..328b4d9ea 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -355,8 +355,6 @@ To use the wonders of bugzilla, you can use the following:
print SENDMAIL $msg;
close SENDMAIL;
- print "Content-type: text/html\n\n";
- PutHeader("Password mailed");
print "The password for the e-mail address\n";
print "$login has been e-mailed to that address.\n";
print "<p>When the e-mail arrives, you can click <b>Back</b>\n";
@@ -389,6 +387,8 @@ sub confirm_login {
SqlQuote($enteredlogin));
$realpwd = FetchOneColumn();
}
+ print "Content-type: text/html\n\n";
+ PutHeader("<H1>Password has been emailed");
MailPassword($enteredlogin, $realpwd);
exit;
}