0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-29 07:18:20 +02:00

modules/client/rooms/context: Enforce spec event_id param only; fix urldecode condition.

This commit is contained in:
Jason Volk 2019-03-31 00:34:44 -07:00
parent d3bc65eaa9
commit 40b74a6721

View file

@ -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]