Bug #3896
open
FaceUri::parse doesn't reject some invalid unix:// URIs
Added by Davide Pesavento almost 8 years ago.
Updated about 7 years ago.
Description
One such example is "unix://foo/bar", where the parser would interpret "foo" as the host component and "bar" as the path component of the URI.
Related issues
1 (1 open — 0 closed)
I think the solution is to abandon regex-based parsing, but implement a parser for each scheme which encodes the specific rules for that scheme. The parser is generalized from canonize provider.
Junxiao Shi wrote:
I think the solution is to abandon regex-based parsing, but implement a parser for each scheme which encodes the specific rules for that scheme.
I'd tend to agree.
- Related to Bug #4100: FaceUri::parse doesn't reject IPv4 addresses with v6 scheme (and vice versa) added
- Category changed from Utils to Network
- Related to deleted (Bug #4100: FaceUri::parse doesn't reject IPv4 addresses with v6 scheme (and vice versa))
Also available in: Atom
PDF