Explorar el Código

escaping on all fields

pull/95/head
f0x52 hace 7 años
padre
commit
e3b3e1601c
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. +3
    -3
      templates/mod/edit_post_form.html

+ 3
- 3
templates/mod/edit_post_form.html Ver fichero

@@ -7,7 +7,7 @@
{% trans %}Name{% endtrans %}
</th>
<td>
<input type="text" name="name" size="25" maxlength="35" autocomplete="off" value="{{ post.name }}">
<input type="text" name="name" size="25" maxlength="35" autocomplete="off" value="{{ post.name|e }}">
</td>
</tr>
<tr>
@@ -15,7 +15,7 @@
{% trans %}Email{% endtrans %}
</th>
<td>
<input type="text" name="email" size="25" maxlength="40" autocomplete="off" value="{{ post.email }}">
<input type="text" name="email" size="25" maxlength="40" autocomplete="off" value="{{ post.email|e }}">
</td>
</tr>
<tr>
@@ -32,7 +32,7 @@
{% trans %}Comment{% endtrans %}
</th>
<td>
<textarea name="body" id="body" rows="8" cols="35">{% if raw %}{{ post.body }}{% else %}{{ post.body_nomarkup }}{% endif %}</textarea>
<textarea name="body" id="body" rows="8" cols="35">{% if raw %}{{ post.body|e }}{% else %}{{ post.body_nomarkup|e }}{% endif %}</textarea>
</td>
</tr>
</table>


Cargando…
Cancelar
Guardar