0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 18:18:56 +02:00

ircd::rfc3986: Relax decoder to allow already-decoded inputs.

This commit is contained in:
Jason Volk 2020-04-13 17:06:28 -07:00
parent a7d1bc9419
commit 5dc16850c6

View file

@ -445,7 +445,11 @@ struct ircd::rfc3986::decoder
const rule<char()> unreserved_char
{
// unreserved characters and !$+*'(),
char_("A-Za-z0-9._~!$+*'(),-")
//char_("A-Za-z0-9._~!$+*'(),-")
//NOTE: allow any printable character here. No reason for trouble with
//NOTE: already-decoded inputs unless some other grammar expects it.
ascii::print - '%'
,"url unreserved characters"
};