| Summary: | [patch] www/en/cgi/query-pr.cgi broken base64 attachments | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Documentation | Reporter: | David Horn <dhorn2000> | ||||||
| Component: | Books & Articles | Assignee: | Gavin Atkinson <gavin> | ||||||
| Status: | Closed FIXED | ||||||||
| Severity: | Affects Only Me | ||||||||
| Priority: | Normal | ||||||||
| Version: | Latest | ||||||||
| Hardware: | Any | ||||||||
| OS: | Any | ||||||||
| Attachments: |
|
||||||||
|
Description
David Horn
2009-03-05 21:10:01 UTC
Some of my example pr numbers are a bit off (I guess my typing is not what it used to be) Examples should have been: 131991 130144 130000 and now for completeness, this pr will get an attachment as well so 132344 will fail to display the attachment until this fix is in place, as the problem always occurs from gmail (at least for me). --Thanks! --_Dave Horn Non quia difficilia sunt non audemus, sed quia non audemus, difficilia sunt. Responsible Changed From-To: freebsd-www->bugmeister bugmeister territory. (I am already looking at a patch for this). I think http://people.freebsd.org/~gavin/PRs/132344.diff is a better fix. A ":" is not valid within MIME or BASE64 encoded data, so the added lines are a safe way of stripping out any extra header lines once we've found the "Content-Transfer-Encoding:" header. This patch has the advantage of handling all headers, rather than just the two we know about so far. There is in theory no reason why we won't see a "X-Foo-Bar:" header in the future, so no sense in limiting what we strip out when we can already know if it is actually a header. THis is a minimal patch to fix the issue, the real fix would involve refactoring the code for no real benefit. Gavin remko 2009-11-15 18:40:26 UTC
FreeBSD doc repository
Modified files:
en/cgi query-pr.cgi
Log:
Correct display of BASE64 attachements.
PR: 116594 [1], 132344 [2]
Submitted by: edwin [1], David Horn [2]
Patch from: gavin
Revision Changes Path
1.69 +3 -2 www/en/cgi/query-pr.cgi
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed A different patch has been committed, but based entirely on your analysis of the problem. Many thanks! Responsible Changed From-To: bugmeister->gavin |