Browse Source

Allow more characters in url

personal/stbuehler/wip
Stefan Bühler 14 years ago
parent
commit
a91d5e96b9
  1. 5
      src/url_parser.rl

5
src/url_parser.rl

@ -36,8 +36,11 @@
reserved = gen_delims | sub_delims;
unreserved = alpha | digit | "-" | "." | "_" | "~";
# many clients don't encode these, e.g. curl, wget, ...
delims = "<" | ">" | "#" | "%" | '"';
unwise = " " | "{" | "}" | "|" | "\\" | "^" | "[" | "]" | "`";
pchar = unreserved | pct_encoded | sub_delims | ":" | "@";
pchar = unreserved | pct_encoded | sub_delims | ":" | "@" | delims | unwise;
path = ("/" ( "/" | pchar)*) >mark %save_path;
# scheme = alpha *( alpha | digit | "+" | "-" | "." );

Loading…
Cancel
Save