mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 11:29:48 +08:00
fix #155: xss prevention
This commit is contained in:
@@ -126,7 +126,7 @@ def stringify_body(meta_data, request_or_response):
|
||||
b64encode(body).decode('utf-8')
|
||||
)
|
||||
else:
|
||||
body = body.decode("utf-8")
|
||||
body = escape(body.decode("utf-8"))
|
||||
except UnicodeDecodeError:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user