mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-17 17:34:21 -05:00
Fix a long-standing spec compliance bug where Synapse would accept a trailing slash on the end of /get_missing_events
federation requests. (#13789)
* Don't accept a trailing slash on the end of /get_missing_events * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
This commit is contained in:
parent
12dacecabd
commit
21687ec189
1
changelog.d/13789.bugfix
Normal file
1
changelog.d/13789.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix a long-standing spec compliance bug where Synapse would accept a trailing slash on the end of `/get_missing_events` federation requests.
|
@ -549,8 +549,7 @@ class FederationClientKeysClaimServlet(BaseFederationServerServlet):
|
|||||||
|
|
||||||
|
|
||||||
class FederationGetMissingEventsServlet(BaseFederationServerServlet):
|
class FederationGetMissingEventsServlet(BaseFederationServerServlet):
|
||||||
# TODO(paul): Why does this path alone end with "/?" optional?
|
PATH = "/get_missing_events/(?P<room_id>[^/]*)"
|
||||||
PATH = "/get_missing_events/(?P<room_id>[^/]*)/?"
|
|
||||||
|
|
||||||
async def on_POST(
|
async def on_POST(
|
||||||
self,
|
self,
|
||||||
|
Loading…
Reference in New Issue
Block a user