mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
Escape content of browsable API response.
This commit is contained in:
parent
443f6fb9cf
commit
ab0fd8ddb1
@ -138,8 +138,10 @@
|
||||
<pre class="prettyprint"><span class="meta nocode"><b>HTTP {{ response.status_code }} {{ response.status_text }}</b>{% autoescape off %}
|
||||
{% for key, val in response_headers.items %}<b>{{ key }}:</b> <span class="lit">{{ val|break_long_headers|urlize_quoted_links }}</span>
|
||||
{% endfor %}
|
||||
{# Original line below had content|urlize_quoted_links; for Ansible Tower disable automatic URL creation here. #}
|
||||
</span>{{ content }}</pre>{% endautoescape %}
|
||||
{# Original line below had the side effect of also escaping content: #}
|
||||
{# </span>{{ content|urlize_quoted_links }}</pre>{% endautoescape %} #}
|
||||
{# For Ansible Tower, disable automatic URL creation and move content outside of autoescape off block. #}
|
||||
{% endautoescape %}</span>{{ content }}</pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user