summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-07-06 01:20:42 +0200
committerczaks <marcin@6irc.net>2014-07-06 01:20:42 +0200
commit1853efa883a8a45f27fdac25f7151c883253adfa (patch)
treed3e1b8d3f8adcdd86623173c2d394d3ea1614b54 /templates
parentf2809d47930bfd2570daa6bae16f563c0e0dcd6d (diff)
SECURITY: backport fix for #70 for 4.5. reported by Barrucadu
Diffstat (limited to 'templates')
-rw-r--r--templates/post_reply.html2
-rw-r--r--templates/post_thread.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/post_reply.html b/templates/post_reply.html
index ab0dc9da..6fba3c1e 100644
--- a/templates/post_reply.html
+++ b/templates/post_reply.html
@@ -35,7 +35,7 @@
{% if config.show_filename and post.filename %}
,
{% if post.filename|length > config.max_filename_display %}
- <span class="postfilename" title="{{ post.filename|e }}">{{ post.filename|truncate(config.max_filename_display)|bidi_cleanup }}</span>
+ <span class="postfilename" title="{{ post.filename|e|bidi_cleanup }}">{{ post.filename|truncate(config.max_filename_display)|e|bidi_cleanup }}</span>
{% else %}
<span class="postfilename">{{ post.filename|e|bidi_cleanup }}</span>
{% endif %}
diff --git a/templates/post_thread.html b/templates/post_thread.html
index cd8ba74a..252e6f11 100644
--- a/templates/post_thread.html
+++ b/templates/post_thread.html
@@ -24,7 +24,7 @@
{% if config.show_filename and post.filename %}
,
{% if post.filename|length > config.max_filename_display %}
- <span class="postfilename" title="{{ post.filename|e }}">{{ post.filename|truncate(config.max_filename_display)|bidi_cleanup }}</span>
+ <span class="postfilename" title="{{ post.filename|e|bidi_cleanup }}">{{ post.filename|truncate(config.max_filename_display)|e|bidi_cleanup }}</span>
{% else %}
<span class="postfilename">{{ post.filename|e|bidi_cleanup }}</span>
{% endif %}