Skip to content

Commit

Permalink
Merge pull request #2131 from herrmanntom/fix-exception-escaping
Browse files Browse the repository at this point in the history
Fix escaping for exceptions in normal web ui (related to #2126)
  • Loading branch information
cyberw authored Jul 11, 2022
2 parents 218e7f4 + a367c3b commit fff90fd
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 fff90fd

Please sign in to comment.