]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 137121: modify the way in which headers are printed in order to avoid...
authorjocuri%softhome.net <>
Fri, 27 Feb 2004 18:50:27 +0000 (18:50 +0000)
committerjocuri%softhome.net <>
Fri, 27 Feb 2004 18:50:27 +0000 (18:50 +0000)
createaccount.cgi

index 1c0448c20d908e4f1226e9efbf5c774c2b5517ac..e135de7049474e8f683a0f6e187c57c106b5a535 100755 (executable)
@@ -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());