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)
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)
1.16 KB,
patch
|
jouni
:
review+
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Comment 1•22 years ago
|
||
Excuse the noise - CheckEmailSyntax() prints the header a second time _if_ the email does not fit the syntax required.
OS: Windows 2000 → All
Updated•22 years ago
|
Priority: -- → P2
Target Milestone: --- → Bugzilla 2.18
Assignee | ||
Updated•21 years ago
|
Hardware: PC → All
Assignee | ||
Comment 2•21 years ago
|
||
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
Assignee | ||
Comment 3•21 years ago
|
||
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
Assignee | ||
Comment 4•21 years ago
|
||
Comment on attachment 142189 [details] [diff] [review] Version 1 Tested, it works.
Attachment #142189 -
Flags: review?(jouni)
Comment 5•21 years ago
|
||
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+
Assignee | ||
Updated•21 years ago
|
Flags: approval?
Updated•20 years ago
|
Flags: approval? → approval+
Whiteboard: [wanted for 2.16.5] → [wanted for 2.16.5] [does not affect trunk]
Assignee | ||
Comment 6•20 years ago
|
||
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
Updated•20 years ago
|
Whiteboard: [wanted for 2.16.5] [does not affect trunk] → [fixed in 2.16.5] [does not affect trunk]
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•