uri: allow out of spec chars
This commit is contained in:
parent
f4bb73dbec
commit
50b53f7269
@ -34,7 +34,9 @@
|
||||
sub_delim = "!" | "$" | "&" | "'" | "(" | ")" | "*" | "+" | "," | ";" | "=";
|
||||
# double quote is allowed here because it's quite common in real life and
|
||||
# we don't have a great way to work around it here.
|
||||
pchar = unreserved | pct_encoded | sub_delim | ':' | '@' | '"';
|
||||
#
|
||||
# pchar = unreserved | pct_encoded | sub_delim | ':' | '@' | '"';
|
||||
pchar = (any - ('%' | '/' | '?' | '#')) | pct_encoded;
|
||||
|
||||
## Atoms
|
||||
reg_name = (unreserved | pct_encoded | sub_delim)*;
|
||||
|
@ -357,6 +357,9 @@ test_validity (cruft::TAP::logger &tap)
|
||||
"http://example.com/???",
|
||||
"http://example.com/?#?",
|
||||
"http://example.com/%22",
|
||||
|
||||
// Out of spec, but required
|
||||
"/topic/emmanuel-jean-michel-frédéric-macron-2wc",
|
||||
};
|
||||
|
||||
for (auto const &good: GOOD)
|
||||
|
Loading…
Reference in New Issue
Block a user