mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
modules/client/rooms/context: Enforce spec event_id param only; fix urldecode condition.
This commit is contained in:
parent
d3bc65eaa9
commit
40b74a6721
1 changed files with 1 additions and 3 deletions
|
@ -70,9 +70,7 @@ get__context(client &client,
|
|||
|
||||
m::event::id::buf event_id
|
||||
{
|
||||
m::sigil(request.parv[2]) == m::id::EVENT?
|
||||
url::decode(event_id, request.parv[2]):
|
||||
m::head(room_id)
|
||||
url::decode(event_id, request.parv[2])
|
||||
};
|
||||
|
||||
const auto limit{[&request]
|
||||
|
|
Loading…
Reference in a new issue