diff options
author | David Robertson <davidr@element.io> | 2022-05-18 11:28:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 11:28:14 +0100 |
commit | d4713d3e335b21d12284ddd8ebd00e38abcfd521 (patch) | |
tree | ca02237e04ac9f1139a52e36c7c169e82d7b8cdf /synapse/rest/client/room.py | |
parent | Make handling of federation Authorization header (more) compliant with RFC723... (diff) | |
download | synapse-d4713d3e335b21d12284ddd8ebd00e38abcfd521.tar.xz |
Discard null-containing strings before updating the user directory (#12762)
Diffstat (limited to 'synapse/rest/client/room.py')
-rw-r--r-- | synapse/rest/client/room.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/room.py b/synapse/rest/client/room.py index 4b8bfbffcb..5a2361a2e6 100644 --- a/synapse/rest/client/room.py +++ b/synapse/rest/client/room.py @@ -109,10 +109,10 @@ class RoomStateEventRestServlet(TransactionRestServlet): self.auth = hs.get_auth() def register(self, http_server: HttpServer) -> None: - # /room/$roomid/state/$eventtype + # /rooms/$roomid/state/$eventtype no_state_key = "/rooms/(?P<room_id>[^/]*)/state/(?P<event_type>[^/]*)$" - # /room/$roomid/state/$eventtype/$statekey + # /rooms/$roomid/state/$eventtype/$statekey state_key = ( "/rooms/(?P<room_id>[^/]*)/state/" "(?P<event_type>[^/]*)/(?P<state_key>[^/]*)$" |