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

HTTP paths with / in it gets encoded to %2F which breaks the URL #16

Open
hughdavenport opened this issue Nov 25, 2014 · 1 comment
Open

Comments

@hughdavenport
Copy link

When I tried adding this shortened url for a google map: https://goo.gl/maps/pZTiA
Before patch - worked fine
After patch - get a 404
due to safeCurl changing the url thus:
[originalUrl] => https://goo.gl/maps/pZTiA
[cleanUrl] => https://goo.gl/maps%2FpZTiA
And google not liking the / being turned into %2F

@hughdavenport
Copy link
Author

Potentially when rebuilding URL, you could use http_build_url function (http://php.net/manual/en/function.http-build-url.php) which does reverse of parse_url :D

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