0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-12 06:58:55 +02:00

modules/client/rooms/messages: Relax limit value lex_cast prior to truncation.

This commit is contained in:
Jason Volk 2022-07-15 11:56:49 -07:00
parent 6ef8bf28ef
commit db75ca52c4

View file

@ -225,7 +225,7 @@ try
// The maximum number of events to return. Default: 10.
// > we limit this to 255 via narrowing cast
request.query["limit"]?
uint8_t(lex_cast<ushort>(request.query.at("limit"))):
uint8_t(lex_cast<ulong>(request.query.at("limit"))):
uint8_t(10)
}
,dir