FS#13740 - archweb: text/plain and text/html confusion

Attached to Project: Arch Linux
Opened by Aaron Griffin (phrakture) - Tuesday, 10 March 2009, 21:40 GMT
Last edited by Dusty Phillips (Dusty) - Sunday, 12 April 2009, 14:35 GMT
Task Type Bug Report
Category Web Sites
Status Closed
Assigned To Dusty Phillips (Dusty)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Various pieces of the website code seem to no longer output HTML as they once did.

Case in point:
http://www.archlinux.org/developers/#AaronG
Notice the literal "<del>" tags.

Additionally, our RSS feeds seem to work the same way - the content of the feed itself is text/plain (or possibly escaped), so that feed readers are getting literal tags when we should be getting formatted HTML.

The front page, however, outputs news items as HTML properly.

It seems some of our output is a bit confused. I'm not sure if there are more cases for this
This task depends upon

Closed by  Dusty Phillips (Dusty)
Sunday, 12 April 2009, 14:35 GMT
Reason for closing:  Fixed
Comment by Dan McGee (toofishes) - Sunday, 12 April 2009, 05:03 GMT
This is Django. It escapes everything by default, and if you don't add the filter to the template to stop escaping, it will not show it on the page.
Comment by Dusty Phillips (Dusty) - Sunday, 12 April 2009, 14:35 GMT
Yah, but it would be out of character for me to close any bugs, even if they're trivial fixes.

Actually, I've committed fixes for both these bugs. You caught me on a good day, I decided to do some Arch stuff today, isn't it cool?

If there are any other escaping bugs, they'll need to be reported on a case-by-case basis. Django's autoescaping is a Good Thing. Its just a royal pain to track down all the places its needed.

Loading...