From 51fdf2bfdf51242a5dc3e0ac17ff045f1994195b Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 20 Oct 2020 22:05:02 -0700 Subject: [PATCH] ircd::rfc3986::decoder: Relax decode restriction to all non-control. --- ircd/rfc3986.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ircd/rfc3986.cc b/ircd/rfc3986.cc index 5e6d07343..8052360c6 100644 --- a/ircd/rfc3986.cc +++ b/ircd/rfc3986.cc @@ -439,7 +439,7 @@ ircd::rfc3986::decoder const rule decode_char { - lit('%') > qi::uint_parser{} + lit('%') > qi::uint_parser{} ,"url decodable character" }; @@ -470,7 +470,7 @@ ircd::rfc3986::decoder :decoder::base_type{decode_safe} { //TODO: XXX this never reports failure to throw; it just stops parsing - decode_safe %= *(unreserved_char | decode_char[_pass = (local::_1 > 0x1F)]); + decode_safe %= *(unreserved_char | decode_char[_pass = ((local::_1 > 0x1F) | (local::_1 < 0x00))]); } } const ircd::rfc3986::decoder;