-
Couldn't load subscription status.
- Fork 144
Improve RemoteName parser #225
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
Conversation
| @@ -0,0 +1,13 @@ | |||
| grammar Reference; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What the origin of this grammar? You compiled it from a spec? Would be nice to have a link here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's a port of the old grammar that Tart used, but more (1) readable/editable and (2) strict w.r.t. potential path traversal (see d8a71ec).
I've realized that it's not worth porting the "official spec" because Tart is not a registry, so it's parser could be more relaxed, however, it needs to safely handle potential path traversal (e.g. with ../../..).
* Improve RemoteName parser * Remove Parsing import * Permit namespace components to contain separators, but no more than one * Add testNoPathTraversal
Resolves #35.