From 14abe07a4a8be90bbe763542a6e02fbb2aaf20d2 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Fri, 17 Dec 2021 21:55:47 +1100 Subject: [PATCH] Remove unnecessary use of "safe" template tag. This tag marks a variable as not requiring escaping by the template engine, potentially creating cross-site scripting vulnerabilities, so shouldn't be used unless absolutely necessary. In these cases, I don't think it's necessary. --- www/conservancy/templates/blog/entry_detail.html | 2 +- www/conservancy/templates/blog/entry_partial.html | 2 +- www/conservancy/templates/feeds/blog_title.html | 2 +- www/conservancy/templates/feeds/news_description.html | 2 +- www/conservancy/templates/feeds/news_title.html | 2 +- www/conservancy/templates/frontpage.html | 2 +- www/conservancy/templates/news/pressrelease_detail.html | 2 +- www/conservancy/templates/news/pressrelease_partial.html | 4 ++-- www/conservancy/templates/opengraph_partial.html | 4 ++-- www/conservancy/templates/sponsors.html | 6 +++--- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/www/conservancy/templates/blog/entry_detail.html b/www/conservancy/templates/blog/entry_detail.html index 87488a68..70bd722b 100644 --- a/www/conservancy/templates/blog/entry_detail.html +++ b/www/conservancy/templates/blog/entry_detail.html @@ -6,7 +6,7 @@ {% include "opengraph_urllist_partial.html" with property='video' urls=object.get_one_video_url %} {% endblock %} -{% block subtitle %}{{ object.headline|striptags|safe }} - Conservancy Blog - {% endblock %} +{% block subtitle %}{{ object.headline|striptags }} - Conservancy Blog - {% endblock %} {% block content %}