[trunk][saas-2][7.0]Sanitizing html content when saving new template corrupts placeholders in some html attributes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP Publisher's Warranty Team |
Bug Description
To reproduce:
- go to one of the runbot/saas-2 instances
- From Messaging/
- More/Partner Mass Mailing
- fill-in a subject
- click on the "Show Source" button of the body composer
- insert an html tag like this: <a href="$
- save as new template
- click on the "Show Source" button again
- the body has been sanitized like this: <a href="%
- at this point, accepting to send the mail from the composer does not produce expected effect, i.e., replacement of placeholders by real values inside the html href attributes.
In this use case, it seems the method "html_sanitize" is called too early.
Notes:
- By clicking on the (new) template link in the composer, we can see that the "transformation" affects also the final content of the new template not only the body of the mail in the composer
- can also be reproduced on [7.0]
- tested on revision 5004 of [saas-2/server]
- can only be reproduced fromwithin the mail composer, not from the classic form view of email templates
Thanks to fix this issue on both [saas-2] and [7.0] branches.
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 17 lines (+9/-0)1 file modifiedopenerp/tools/mail.py (+9/-0)
summary: |
- Sanitizing html content when saving new template corrupts placeholders - in some html attributes + [trunk][saas-2][7.0]Sanitizing html content when saving new template + corrupts placeholders in some html attributes |
Changed in openobject-addons: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openobject-addons: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Changed in openobject-addons: | |
status: | Confirmed → Fix Released |
Linked to opw-603452