fix #155: xss prevention

This commit is contained in:
debugtalk
2018-05-31 14:41:40 +08:00
parent eaaf09833d
commit 227ea6c650

View File

@@ -126,7 +126,7 @@ def stringify_body(meta_data, request_or_response):
b64encode(body).decode('utf-8') b64encode(body).decode('utf-8')
) )
else: else:
body = body.decode("utf-8") body = escape(body.decode("utf-8"))
except UnicodeDecodeError: except UnicodeDecodeError:
pass pass