Skip to content

Commit 5dadead

Browse files
committed
Merged Tero's safe/escape template fixes (Django 1.x)
- Legacy-Id: 1820
1 parent 5815ed4 commit 5dadead

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/templates/idrfc/doc_main_id.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ <h1 style="margin-top:0;">{{ doc.title|escape }}<br/>{{ doc.draft_name_and_revis
103103
<table id="metatable">
104104
<tr><td style="width:18ex;">Document type:</td><td>{{ info.type|escape }}</td></tr>
105105
<tr><td>State:</td><td>
106-
{{ doc.friendly_state }}
106+
{{ doc.friendly_state|safe }}
107107
{% if doc.rfc_editor_state %}<br />RFC Editor State: {{ doc.rfc_editor_state|escape }} {% endif %}
108108
{% if doc.replaces %}<br />Replaces {% for rep in doc.replaces %}<a href="/doc/{{rep}}/">{{rep}}</a> {% endfor %}{% endif %}
109109
</td></tr>

ietf/templates/iesg/agenda_doc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
</td></tr>
7070

7171
{% if doc.obj.note %} {# note: note is not escaped #}
72-
<tr><td></td><td></td><td>Note: {{ doc.obj.note }}</td></tr>
72+
<tr><td></td><td></td><td>Note: {{ doc.obj.note|safe }}</td></tr>
7373
{% endif %}
7474

7575
{% if doc.obj.draft.ipr.all %}

0 commit comments

Comments
 (0)