-
Notifications
You must be signed in to change notification settings - Fork 19
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
encoding URLs incorrectly for characters "(" and ")" #34
Comments
@nbl7 What version of the library are you using? In version 2.1.0 all paths are being encoded with |
Hello @jayeb, thanks for your response. Original image: URL generated Thank you |
Ah, okay. When passing a fully-qualified URL into the Unfortunately, PHP doesn't provide an easy function for encoding only illegal characters in a given URL -- the go-to
If you run your example path through that function, you'll end up with this properly-encoded URL:
And now that this path is a legal URL, you can pass it through
Hope this helps! We prefer to use our GitHub issues for bug reports and feature requests rather than individual implementation and configuration problems, so I'm gonna close this ticket now. However, if you have any follow-up questions or additional issues please write in to support@imgix.com -- I'll make sure to scoop up any tickets I see from you right as they come in. |
Thank you so much for your help @jayeb. |
I am having an issue with the URL encode.
If I have an image with a filename like this
some-name (1).png
the library generate a URL like this
some-name+%281%29.png
and this give me a 404 error in Imgix.
Does somebody know about this bug?
Thank you
nbl7
The text was updated successfully, but these errors were encountered: