From 4e94304c8c65ffa9821dc497ea06c9bba6bda767 Mon Sep 17 00:00:00 2001 From: uzairr Date: Tue, 21 Jul 2020 15:01:32 +0500 Subject: [PATCH] Fix xss in base site template --- cms/templates/admin/base_site.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cms/templates/admin/base_site.html b/cms/templates/admin/base_site.html index d050919de3..953b42d2bf 100644 --- a/cms/templates/admin/base_site.html +++ b/cms/templates/admin/base_site.html @@ -7,13 +7,13 @@ {% block nav-global %}{% endblock %} {% block userlinks %} {% if site_url %} - {% trans 'View site' %} / + {% trans 'View site' as tmsg%} {{tmsg|force_escape}} / {% endif %} {% if user.is_active and user.is_staff %} {% url 'django-admindocs-docroot' as docsroot %} {% if docsroot %} - {% trans 'Documentation' %} / + {% trans 'Documentation' as tmsg %} {{tmsg|force_escape}} / {% endif %} {% endif %} - {% trans 'Log out' %} + {% trans 'Log out' as tmsg %} {{tmsg|force_escape}} {% endblock %}