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
IDNs are not properly converted to ASCII on automatic redirects #2423
Comments
Will this solve the problem? #2424 |
Yeah, I guess it should :) I can try if my tests pass using your fork. |
Hey @gmponos. I have tried installing your version on my project, by adding your fork as a VCS composer repository, but then, when I use the I have tried escaping/encoding the Could you rename the branch so that it does not include special chars? |
You could just edit the vendor folder with the changes from the PR. Would be faster... |
You are completely right. I overengineered the whole process 😅 |
@gmponos I just tested your changes by copy-pasting the code as @GrahamCampbell suggested, and I can confirm it works 😄 |
Btw I think I fixed that on the related PR #2424 I also pushed a branch |
Hey @gmponos I tested again with your branch, and it continues working. Thanks! |
This is fixed by #2424 Will be released in 6.5.1 |
Guzzle version(s) affected: 6.5
Description
I have been waiting for this PR to be merged, #2286, which brings IDN support to guzzle.
The thing is that I have just tested v6.5, which includes it, and I have realized that the
idn_to_ascii
function is only applied to the first domain provided by the user, but if for some reason some other IDN is returned in theLocation
header and guzzle is configured to automatically follow redirects, it does not apply it to those, causing some domains to not properly resolve.How to reproduce
I have some internationalized domain names that can be used to test, which I also use for my e2e tests.
These are all the use cases I cover:
For now, I just disable automatically following redirects and use a recursive function.
The text was updated successfully, but these errors were encountered: