From 71ffb31f750bc92db525ef3d97072c60578213a3 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Fri, 27 Feb 2004 18:50:27 +0000 Subject: [PATCH] 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. --- createaccount.cgi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/createaccount.cgi b/createaccount.cgi index 1c0448c20d..e135de7049 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()); -- 2.47.2