Closed Bug 623076 Opened 15 years ago Closed 15 years ago

Pretty-print (strip out HTML/markup) from summary/description until the user clicks Edit

Categories

(addons.mozilla.org Graveyard :: Developer Pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
5.12.6

People

(Reporter: stephend, Assigned: davedash)

References

()

Details

Attachments

(1 file)

Attached image Screenshot
We should pretty-print (i.e. strip-out the HTML tags/markup) on https://addons.allizom.org/z/en-US/developers/addon/a9-9331/edit Right now, it looks like: oh hai, here is some HTML: <a href="http://www.akamai.com">Akamai</a> <img src="http://www.lexus.com/lexus-share/images/gallery/models/IS/photos/exterior/g_ext1.jpg"> <b>Bold</b> It should appear formatted and without tags, just as it would appear on the site, until the user clicks on Edit, in which case, all tags should be exposed.
Assignee: nobody → amckay
Beware the xss.
Assignee: amckay → dd
http://github.com/jbalogh/zamboni/commit/271ec83 Not pleased with the __class__ bit, hoping we can change that later to something more sensible.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Verified FIXED; the pretty-print is now: hi, here is some HTML:<img src=";<script>alert('hi');</script> (Which is fine since there was an XSS attempt, which is now escaped.)
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: