mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 08:12:37 +01:00
ircd::rfc3986: Fix grammar throwing out of url::decode_unsafe().
This commit is contained in:
parent
c33ddd278a
commit
cd4b1714d9
2 changed files with 3 additions and 2 deletions
|
@ -46,7 +46,7 @@ namespace ircd::rfc3986
|
||||||
|
|
||||||
// Decode percent-encoded strings. N.B. this decodes into any character
|
// Decode percent-encoded strings. N.B. this decodes into any character
|
||||||
// including control codes like %00 into '\0' etc. Use with caution.
|
// 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
|
// extractor suite
|
||||||
uint16_t port(const string_view &remote); // get portnum from valid remote
|
uint16_t port(const string_view &remote); // get portnum from valid remote
|
||||||
|
|
|
@ -444,7 +444,7 @@ namespace ircd::rfc3986::parser::decoder
|
||||||
|
|
||||||
const expr decode_char
|
const expr decode_char
|
||||||
{
|
{
|
||||||
lit('%') > qi::int_parser<char, 16, 2, 2>{}
|
lit('%') >> qi::int_parser<char, 16, 2, 2>{}
|
||||||
,"url decodable character"
|
,"url decodable character"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -479,6 +479,7 @@ namespace ircd::rfc3986::parser::decoder
|
||||||
ircd::const_buffer
|
ircd::const_buffer
|
||||||
ircd::rfc3986::decode_unsafe(const mutable_buffer &buf,
|
ircd::rfc3986::decode_unsafe(const mutable_buffer &buf,
|
||||||
const string_view &url)
|
const string_view &url)
|
||||||
|
noexcept
|
||||||
{
|
{
|
||||||
const char *start(url.data()), *const stop
|
const char *start(url.data()), *const stop
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue