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:
parent
6ef8bf28ef
commit
db75ca52c4
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue