mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 10:53:54 +01:00
Fix url decoding bugs with /redact and /send APIs.
This commit is contained in:
parent
42081b1937
commit
d3a02ec038
1 changed files with 2 additions and 2 deletions
|
@ -182,7 +182,7 @@ class RoomSendEventRestServlet(RestServlet):
|
||||||
content = _parse_json(request)
|
content = _parse_json(request)
|
||||||
|
|
||||||
event = self.event_factory.create_event(
|
event = self.event_factory.create_event(
|
||||||
etype=event_type,
|
etype=urllib.unquote(event_type),
|
||||||
room_id=urllib.unquote(room_id),
|
room_id=urllib.unquote(room_id),
|
||||||
user_id=user.to_string(),
|
user_id=user.to_string(),
|
||||||
content=content
|
content=content
|
||||||
|
@ -458,7 +458,7 @@ class RoomRedactEventRestServlet(RestServlet):
|
||||||
room_id=urllib.unquote(room_id),
|
room_id=urllib.unquote(room_id),
|
||||||
user_id=user.to_string(),
|
user_id=user.to_string(),
|
||||||
content=content,
|
content=content,
|
||||||
redacts=event_id,
|
redacts=urllib.unquote(event_id),
|
||||||
)
|
)
|
||||||
|
|
||||||
msg_handler = self.handlers.message_handler
|
msg_handler = self.handlers.message_handler
|
||||||
|
|
Loading…
Reference in a new issue