Skip to content

Commit

Permalink
Fix escaping for exceptions in normal web ui (related to #2126)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Herrmann committed Jul 11, 2022
1 parent 218e7f4 commit a367c3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions locust/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ def exceptions() -> Response:
"exceptions": [
{
"count": row["count"],
"msg": row["msg"],
"traceback": row["traceback"],
"msg": escape(row["msg"]),
"traceback": escape(row["traceback"]),
"nodes": ", ".join(row["nodes"]),
}
for row in (environment.runner.exceptions.values() if environment.runner is not None else [])
Expand Down

0 comments on commit a367c3b

Please sign in to comment.