Commit d325076c authored by Tulir Asokan's avatar Tulir Asokan

Don't allow HTML in ping messages

parent 6268749a
......@@ -45,7 +45,7 @@ class EchoBot(Plugin):
msgtype=MessageType.NOTICE, format=Format.HTML,
body=f"{evt.sender}: Pong! (ping {message} {pretty_diff} to arrive)",
formatted_body=f"<a href='{evt.sender}'>{evt.sender}</a>: Pong! "
f"(<a href='{evt.room_id}/{evt.event_id}'>ping</a> {message} "
f"(<a href='{evt.room_id}/{evt.event_id}'>ping</a> {html_message} "
f"{pretty_diff} to arrive)")
content["pong"] = {
"ms": diff,
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment