Closed Bug 137121 Opened 22 years ago Closed 20 years ago

createaccount.cgi emits "Content-type: text/html" twice

Categories

(Bugzilla :: User Accounts, defect, P2)

2.15

Tracking

()

RESOLVED FIXED
Bugzilla 2.16

People

(Reporter: andreas.krueger, Assigned: goobix)

Details

(Whiteboard: [fixed in 2.16.5] [does not affect trunk])

Attachments

(1 file)

One of the first things createaccount.cgi *always* does is, it clears the 
cookies.  In that code, there already is a "Content-type". 

Createaccount.cgi then calls CheckEmailSyntax(), which prints "Content-type" a 
second time.

That second time is no longer interpreted as a HTTP-Header, so it becomes 
visible on the browser screen.
Excuse the noise - CheckEmailSyntax() prints the header a second time _if_ the 
email does not fit the syntax required.
OS: Windows 2000 → All
Priority: -- → P2
Target Milestone: --- → Bugzilla 2.18
Hardware: PC → All
This got fixed on the trunk, it's only present in the 2.16 branch.

Wanted for 2.16.5 according to justdave.
Summary: createaccount.cgi emitts "Content-type: text/html" twice → createaccount.cgi emits "Content-type: text/html" twice
Whiteboard: [wanted for 2.16.5]
Target Milestone: Bugzilla 2.18 → Bugzilla 2.16
Attached patch Version 1Splinter Review
2.16 sucks, we don't have Bugzilla->cgi, and a lot of other things. :-)

If we try to make $vars->{'header_done'} = 1, then the whole HTML header
disappears. :-)

Not sure that this approch is 100% the right thing to do, but it solves the
problem, and there's only one instance of it, as far as I can see.
Assignee: myk → vlad
Status: NEW → ASSIGNED
Comment on attachment 142189 [details] [diff] [review]
Version 1

Tested, it works.
Attachment #142189 - Flags: review?(jouni)
Comment on attachment 142189 [details] [diff] [review]
Version 1

Ewww, but r=jouni since it works. I can't remember how the headers get printed
out in 2.16, but basically this looks pretty non-intrusive.
Attachment #142189 - Flags: review?(jouni) → review+
Flags: approval?
Flags: approval? → approval+
Whiteboard: [wanted for 2.16.5] → [wanted for 2.16.5] [does not affect trunk]
Checking in createaccount.cgi;
/cvsroot/mozilla/webtools/bugzilla/createaccount.cgi,v  <--  createaccount.cgi
new revision: 1.21.2.5; previous revision: 1.21.2.4
done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Whiteboard: [wanted for 2.16.5] [does not affect trunk] → [fixed in 2.16.5] [does not affect trunk]
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: