From c106ba7bee2788fa7c8857e6932de5b9d29ef88c Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Fri, 24 Oct 2014 13:55:13 -0400 Subject: [PATCH] enable autoescaping of content in the DRF template --- awx/templates/rest_framework/base.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/templates/rest_framework/base.html b/awx/templates/rest_framework/base.html index 8ddec9f3c1..c34c4a9e36 100644 --- a/awx/templates/rest_framework/base.html +++ b/awx/templates/rest_framework/base.html @@ -118,11 +118,11 @@
{{ request.method }} {{ request.get_full_path }}
-
HTTP {{ response.status_code }} {{ response.status_text }}{% autoescape off %} +
HTTP {{ response.status_code }} {{ response.status_text }} {% for key, val in response_headers.items %}{{ key }}: {{ val|break_long_headers|urlize_quoted_links }} {% endfor %} {# Original line below had content|urlize_quoted_links; for Ansible Tower disable automatic URL creation here. #} -
{{ content }}
{% endautoescape %} +
{{ content }}