mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 02:47:35 -02:30
Escape content of browsable API response.
This commit is contained in:
@@ -138,8 +138,10 @@
|
|||||||
<pre class="prettyprint"><span class="meta nocode"><b>HTTP {{ response.status_code }} {{ response.status_text }}</b>{% autoescape off %}
|
<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>
|
{% for key, val in response_headers.items %}<b>{{ key }}:</b> <span class="lit">{{ val|break_long_headers|urlize_quoted_links }}</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{# Original line below had content|urlize_quoted_links; for Ansible Tower disable automatic URL creation here. #}
|
{# Original line below had the side effect of also escaping content: #}
|
||||||
</span>{{ content }}</pre>{% endautoescape %}
|
{# </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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user