From 271dcb7a6501ae402344ea6685c7313f49e645d5 Mon Sep 17 00:00:00 2001 From: czaks Date: Thu, 23 Apr 2015 03:45:08 +0200 Subject: [PATCH] fileboard: fix possible XSS (mainly applicable to 8chan) --- templates/post_form.html | 2 +- templates/post_thread_fileboard.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/post_form.html b/templates/post_form.html index ea3ac765..0e0d3fed 100644 --- a/templates/post_form.html +++ b/templates/post_form.html @@ -98,7 +98,7 @@ 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 %}