fix: xss in response json

This commit is contained in:
debugtalk
2019-03-04 19:34:49 +08:00
parent eaadcaabbb
commit ac70488ee2
2 changed files with 40 additions and 6 deletions

View File

@@ -266,8 +266,8 @@
{% else %}
{{ value }}
{% endif %}
{% elif key == "text" %}
<pre>{{ req_resp.response.text | e }}</pre>
{% elif key in ["text", "json"] %}
<pre>{{ value | e }}</pre>
{% else %}
{{ value }}
{% endif %}