-
Notifications
You must be signed in to change notification settings - Fork 4
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
.. shouldn't traverse past a drive letter for file URLs #504
Comments
Hey @nex3 Is the bug still relevant? Can you tell me more about it? |
Yes, it's still relevant. For example: import 'package:path/path.dart' as p;
main() {
print(p.url.normalize('file:///C:/..'));
} This should print |
I see well we can solve this with some string manipulation and checks for these drive letters and return the path accordingly from the normalize function of the |
Again, I'm no longer the maintainer of this package, so I recommend asking @natebosch. |
I think this is worth fixing, I don't yet have an understanding of the best fix. |
According to the WHATWG URL spec,
..
shouldn't traverse past a drive letter if it's the only component in afile
URL's path.The text was updated successfully, but these errors were encountered: