Closed Bug 649109 Opened 13 years ago Closed 13 years ago

User formatting (line breaks) not retained for Why/who sections of blocklist detail

Categories

(addons.mozilla.org Graveyard :: Admin/Editor Tools, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: krupa.mozbugs, Assigned: jbalogh)

References

()

Details

steps to reproduce:
1. Add 3 paragraphs (with line breaks) to Why and who sections of the blocklist detail page @ https://addons.allizom.org/z/en-US/admin/models/blocklist/blocklistdetail/add/
2. Check the blocked detail page  @ https://addons.allizom.org/z/en-US/firefox/blocked/i40


observed behavior:
User formatting (line breaks) not retained for Why/ who sections of blocklist detail
The field takes html.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
Was there a special request for HTML here?  The normal purification+nl2br would work just as well and be consistent with the rest of the site and it would let us get rid of the "|safe" stuff which we've been on the warpath about.  Even if the input is supposed to be safe here, less false positives would be good, right?
(In reply to comment #2)
> Was there a special request for HTML here?

Yes (bug 629818 comment 2). I do like fewer false positives, though.
(In reply to comment #3)
> (In reply to comment #2)
> > Was there a special request for HTML here?
> 
> Yes (bug 629818 comment 2). I do like fewer false positives, though.

Ah, I'm willing to say "HTML" in that context is our normal purified HTML which is pretty extensive.  I'm going to reopen this to convert to purification+nl2br.  

Sorry to keep dropping .5 bugs on you, but I've seen the .6 schedule and you'll be fine.  Thanks.
Assignee: nobody → jbalogh
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Whiteboard: [post-freeze+]
https://github.com/jbalogh/zamboni/commit/1fbb832 

fligtar: you're limited to whatever HTML we allow elsewhere but links will not get outgoing'd.
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Whiteboard: [post-freeze+]
Filed bug 649923. Verified at https://addons-next.allizom.org/en-US/firefox/blocked/i40
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.