From 19e6658bc182403feb321a416471d19b92161441 Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Thu, 8 Jun 2017 08:11:18 +0900 Subject: [PATCH] Merge pull request from vichan-devel/vichan#230 from antedeguemon/master Fixed XSS in post edit page and modsearch, this is a partial merge of just modsearch, we already fixed the edit post escaping earlier. --- templates/mod/search_results.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 %}