Skip to content

Commit f20e730

Browse files
committed
updated changes and upgrading doc
1 parent 64be595 commit f20e730

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

CHANGES.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ Fixed:
8181
input field was translated. (Reported by Ludwig Reiter. John
8282
Rouillard)
8383
- Document security issues in xmlrpc interface in doc/xmlrpc.txt.
84-
- Fixed escaping and encoding issues in jinja2 template. (Report:
85-
John Rouillard; Fix: Christof Meerwald)
84+
- Enable autoescape in the jinja2 template and use the i18n extension
85+
for translations. (Report: John Rouillard; Fix: Christof Meerwald)
8686

8787
2019-10-23 2.0.0 alpha 0
8888

doc/upgrading.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,20 @@ diff/merge these changes into your responsive template based tracker.
258258
Jinja template changes
259259
----------------------
260260

261+
Auto escaping has been enabled in the jinja template engine, this
262+
means it is no longer necessary to manually escape dynamic strings
263+
with "|e", but strings that should not be escaped need to be marked
264+
with "|safe" (e.g. "{{ context.history()|u|safe }}"). Also, the i18n
265+
extension has been enabled and the template has been updated to use
266+
the extension for translatable text instead of explicit "i18n.gettext"
267+
calls:
268+
269+
{% trans %}List of issues{% endtrans %}
270+
271+
instead of
272+
273+
{{ i18n.gettext('List of issues')|u }}
274+
261275
The jinja template has been upgraded to use bootstrap 4.1.3 (from
262276
2.2.2). You can diff/merge changes into your jinja template based
263277
tracker.

0 commit comments

Comments
 (0)