0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 08:42:34 +01:00

modules/client/rooms/send: urldecode type and txnid path parameters.

This commit is contained in:
Jason Volk 2019-03-07 15:32:03 -08:00
parent 7ea83597e5
commit 864c6cc889

View file

@ -24,9 +24,10 @@ put__send(client &client,
"type parameter missing"
};
char type_buf[m::event::TYPE_MAX_SIZE];
const string_view &type
{
request.parv[2]
url::decode(type_buf, request.parv[2])
};
if(request.parv.size() < 4)
@ -35,9 +36,10 @@ put__send(client &client,
"txnid parameter missing"
};
char transaction_id_buf[64];
const string_view &transaction_id
{
request.parv[3]
url::decode(transaction_id_buf, request.parv[3])
};
m::vm::copts copts;