Skip to content
Snippets Groups Projects
Commit 76a58fdc authored by Erik Johnston's avatar Erik Johnston
Browse files
parent 02735e14
No related branches found
No related tags found
No related merge requests found
Don't allow clients to send tombstone events that reference the room its sent in. Don't allow clients to send tombstone events that reference the room it's sent in.
...@@ -111,7 +111,9 @@ class EventValidator(object): ...@@ -111,7 +111,9 @@ class EventValidator(object):
raise SynapseError(400, "Content has no replacement_room key") raise SynapseError(400, "Content has no replacement_room key")
if event.content["replacement_room"] == event.room_id: if event.content["replacement_room"] == event.room_id:
raise SynapseError(400, "Tombstone cannot reference itself") raise SynapseError(
400, "Tombstone cannot reference the room it was sent in"
)
def _ensure_strings(self, d, keys): def _ensure_strings(self, d, keys):
for s in keys: for s in keys:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment