diff options
| author | Appleman1234 <applemansigloo@gmail.com> | 2017-04-18 05:49:46 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-18 05:49:46 +0900 |
| commit | da2726f04034282a5beea2ece1c5488e7bf4fad1 (patch) | |
| tree | 263fffd4409aba36925b1d2bcf3b75da05f3cd01 | |
| parent | 8a5850aa117f3664b0ce66865a02307d43a31873 (diff) | |
| parent | e3b3e1601c8ce1a8178fec43de89b707d0e66b62 (diff) | |
Merge pull request #95 from f0x52/master
issue #94, mod edit form
| -rw-r--r-- | templates/mod/edit_post_form.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/mod/edit_post_form.html b/templates/mod/edit_post_form.html index a2980d35..a22f36f3 100644 --- a/templates/mod/edit_post_form.html +++ b/templates/mod/edit_post_form.html @@ -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> @@ -23,7 +23,7 @@ {% trans %}Subject{% endtrans %} </th> <td> - <input style="float:left;" type="text" name="subject" size="25" maxlength="100" autocomplete="off" value="{{ post.subject }}"> + <input style="float:left;" type="text" name="subject" size="25" maxlength="100" autocomplete="off" value="{{ post.subject|e }}"> <input accesskey="s" style="margin-left:2px;" type="submit" name="post" value="{% trans %}Update{% endtrans %}"> </td> </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> |
