Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL scheme characters admitted by DECODE-URL more restrictive than those admitted by TRANSCODE #1327

Open
rebolbot opened this issue Nov 8, 2009 · 0 comments

Comments

@rebolbot
Copy link
Collaborator

rebolbot commented Nov 8, 2009

Submitted by: meijeru

DECODE-URL parses the scheme part of an URL (before :) with the following charset:
A - Z a - z 0 - 9 + - . (this is in accordance with RFC 1738).
Then it does TO-LIT-WORD, which eliminates the case of an initial digit or + -, which seems to be allowed by RFC 1738.
TRANSCODE (i.e. the lexical scan) admits the following characters before the characteristic : of a URL! literal:

in initial position A - Z a-z ! & = ? * . ^ _ ` | ~ (note the absence of digits and + -).

In subsequent positions: anything from ! to ~ except [ ] { } ( ) " / :
Thus TRANSCODE is much more permissive than either RFC 1738 or DECODE-URL.

The restrictions mentioned would merit documenting, I think.

CC - Data [ Version: alpha 94 Type: Issue Platform: All Category: Datatype Reproduce: Always Fixed-in:none ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant