http-parser icon indicating copy to clipboard operation
http-parser copied to clipboard

uri-parser incorrect escape of pct-encoded?

Open vinniefalco opened this issue 9 years ago • 0 comments

From rfc3986:

userinfo      = *( unreserved / pct-encoded / sub-delims / ":" )
pct-encoded   = "%" HEXDIG HEXDIG

However, parse_url_char accepts a percent symbol followed by any userinfo characters. For example this is valid in the server field: x%z https://github.com/nodejs/http-parser/blob/master/http_parser.c#L560

Is this intended?

vinniefalco avatar May 29 '16 11:05 vinniefalco