Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
76a58fdc
Commit
76a58fdc
authored
5 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Fix spelling.
Co-Authored-By:
Andrew Morgan
<
1342360+anoadragon453@users.noreply.github.com
>
parent
02735e14
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/5801.misc
+1
-1
1 addition, 1 deletion
changelog.d/5801.misc
synapse/events/validator.py
+3
-1
3 additions, 1 deletion
synapse/events/validator.py
with
4 additions
and
2 deletions
changelog.d/5801.misc
+
1
−
1
View file @
76a58fdc
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.
This diff is collapsed.
Click to expand it.
synapse/events/validator.py
+
3
−
1
View file @
76a58fdc
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment