0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-19 19:33:45 +02:00

ircd::rfc3986: Fix grammar throwing out of url::decode_unsafe().

This commit is contained in:
Jason Volk 2022-08-02 11:58:05 -07:00
parent c33ddd278a
commit cd4b1714d9
2 changed files with 3 additions and 2 deletions

View file

@ -46,7 +46,7 @@ namespace ircd::rfc3986
// Decode percent-encoded strings. N.B. this decodes into any character
// including control codes like %00 into '\0' etc. Use with caution.
const_buffer decode_unsafe(const mutable_buffer &, const string_view &url);
const_buffer decode_unsafe(const mutable_buffer &, const string_view &url) noexcept;
// extractor suite
uint16_t port(const string_view &remote); // get portnum from valid remote

View file

@ -444,7 +444,7 @@ namespace ircd::rfc3986::parser::decoder
const expr decode_char
{
lit('%') > qi::int_parser<char, 16, 2, 2>{}
lit('%') >> qi::int_parser<char, 16, 2, 2>{}
,"url decodable character"
};
@ -479,6 +479,7 @@ namespace ircd::rfc3986::parser::decoder
ircd::const_buffer
ircd::rfc3986::decode_unsafe(const mutable_buffer &buf,
const string_view &url)
noexcept
{
const char *start(url.data()), *const stop
{