mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-10 23:12:41 +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')
|
b64encode(body).decode('utf-8')
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
body = body.decode("utf-8")
|
body = escape(body.decode("utf-8"))
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user