From 4f85b7c57054e6af8eee4c2d9fbb5cf08c1e7aea Mon Sep 17 00:00:00 2001 From: antedeguemon Date: Sun, 21 May 2017 17:08:43 -0300 Subject: [PATCH] Fixed XSS in post edit page and modsearch --- templates/mod/edit_post_form.html | 4 ++-- templates/mod/search_results.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/mod/edit_post_form.html b/templates/mod/edit_post_form.html index a2980d35..7f8d4b1e 100644 --- a/templates/mod/edit_post_form.html +++ b/templates/mod/edit_post_form.html @@ -7,7 +7,7 @@ {% trans %}Name{% endtrans %} - + @@ -23,7 +23,7 @@ {% trans %}Subject{% endtrans %} - + diff --git a/templates/mod/search_results.html b/templates/mod/search_results.html index 186ee5db..abaad703 100644 --- a/templates/mod/search_results.html +++ b/templates/mod/search_results.html @@ -224,7 +224,7 @@ {% endif %} {% set capcode = post.capcode|capcode %} - {{ post.name }} + {{ post.name|e }} {% if post.trip|length > 0 %} {{ post.trip }} {% endif %} @@ -239,7 +239,7 @@ {% if post.subject %} - {{ post.subject }} + {{ post.subject|e }} {% else %} – {% endif %}