aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-02-27 18:50:27 +0000
committerjocuri%softhome.net <>2004-02-27 18:50:27 +0000
commit71ffb31f750bc92db525ef3d97072c60578213a3 (patch)
treea52305870e3d70140fb1e789bc48a3b739ed50f2 /createaccount.cgi
parentBranch fix for bug 181106: edit-multiple.html.tmpl uses &apos which (diff)
downloadbugzilla-71ffb31f750bc92db525ef3d97072c60578213a3.tar.gz
bugzilla-71ffb31f750bc92db525ef3d97072c60578213a3.tar.bz2
bugzilla-71ffb31f750bc92db525ef3d97072c60578213a3.zip
Patch for bug 137121: modify the way in which headers are printed in order to avoid printing them twice when reporting an error in createaccount.cgi; r=jouni, a=justdave.
Diffstat (limited to 'createaccount.cgi')
-rwxr-xr-xcreateaccount.cgi6
1 files changed, 4 insertions, 2 deletions
diff --git a/createaccount.cgi b/createaccount.cgi
index 1c0448c20..e135de704 100755
--- a/createaccount.cgi
+++ b/createaccount.cgi
@@ -58,8 +58,6 @@ my $cookiepath = Param("cookiepath");
print "Set-Cookie: Bugzilla_login= ; path=$cookiepath; expires=Tue, 15-Sep-1998 21:49:00 GMT
Set-Cookie: Bugzilla_logincookie= ; path=$cookiepath; expires=Tue, 15-Sep-1998 21:49:00 GMT\n";
-print "Content-Type: text/html\n\n";
-
my $login = $::FORM{'login'};
if (defined($login)) {
@@ -68,6 +66,8 @@ if (defined($login)) {
CheckEmailSyntax($login);
$vars->{'login'} = $login;
+ print "Content-Type: text/html\n\n";
+
if (!ValidateNewUser($login)) {
# Account already exists
$template->process("account/exists.html.tmpl", $vars)
@@ -84,6 +84,8 @@ if (defined($login)) {
exit;
}
+print "Content-Type: text/html\n\n";
+
# Show the standard "would you like to create an account?" form.
$template->process("account/create.html.tmpl", $vars)
|| ThrowTemplateError($template->error());