-
Notifications
You must be signed in to change notification settings - Fork 21
Escape space in the path component #8
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
|
@kellysutton I'm debating with myself what is better |
|
Not quite sure what will be best. Our newest hire, @paulstraw, can help you get to the bottom of things. Thanks for the PR! |
|
I just did some digging on this. This blog post has a great overview, but basically it looks like since this is a path and not a query, the space characters should be encoded as After this is merged in, I'm actually planning to more "fully" sanitize passed paths according to the "reserved" section of IETF RFC 3986 (since we unfortunately can't just |
|
@oaleynik, it looks like |
|
@paulstraw thanks for your comment. Yeah, I knew that direct string manipulation is not perfect. Your suggestion to use |
|
As a side note - I saw that post related to URL encoding when I was digging on this issue. I don't think that the https://my-social-network.imgix.net/users/image%201.png?s=193462f12470fe53927d0cf21e07d404 Anyway - I subscribed to #9 to follow your findings. Thanks again! |
Replace space and other characters in path with their escaped versions
|
🎉 This PR is included in version 0.3.0-beta.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Closes #7