From 271dcb7a6501ae402344ea6685c7313f49e645d5 Mon Sep 17 00:00:00 2001 From: czaks Date: Thu, 23 Apr 2015 03:45:08 +0200 Subject: fileboard: fix possible XSS (mainly applicable to 8chan) --- templates/post_thread_fileboard.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/post_thread_fileboard.html') diff --git a/templates/post_thread_fileboard.html b/templates/post_thread_fileboard.html index 983bfe17..1a11ff79 100644 --- a/templates/post_thread_fileboard.html +++ b/templates/post_thread_fileboard.html @@ -9,7 +9,7 @@ {% include 'post/name.html' %} {% include 'post/flag.html' %} [{{ post.files[0].filename|e|bidi_cleanup }}] -{% if post.modifiers['tag'] %}[{{ post.modifiers['tag'] }}]{% endif %} +{% if post.modifiers['tag'] %}[{{ post.modifiers['tag']|e }}]{% endif %} {% include 'post/subject.html' %} {% if post.sticky %} {% if config.font_awesome %} -- cgit v1.3