-
Notifications
You must be signed in to change notification settings - Fork 23.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FIX] survey: Unescape characters in mail subject #71229
Conversation
f6d57b4
to
9a99d42
Compare
That's really strange as it would be the case with all char-based jinja fields. Safe is used to enable html, why should it be required here ? |
@tde-banana-odoo I think that most of the time, jinja fields are rendered inside html body, which is not the case for the mail subject |
in most case we don't use jinja autoescape on mail subject after this change: http://github.com/odoo/odoo/commit/6dde919bb9850912f618b561cd2141bffe41340c so here we should have odoo/addons/survey/wizard/survey_invite.py Line 199 in 8ffd822
edit: checking |
To reproduce the error: Create a survey (title must contain ") and send it Error: The mail subject is incorrect: the character " is replaced with " OPW-2536206
9a99d42
to
40b6074
Compare
I would say don't use context and add pipes, but this would break translations, so I suppose go for context indeed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
robodoo r+
To reproduce the error:
Create a survey (title must contain ") and send it
Error:
The mail subject is incorrect: the character " is replaced with
"
OPW-2536206