Skip to content

ext/soap: Compare Set-Cookie header case-insensitively #6143

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

Closed
wants to merge 1 commit into from

Conversation

polarina
Copy link
Contributor

@polarina polarina commented Sep 16, 2020

When the SOAP server sends HTTP headers in all-lowercase, the SoapClient does not recognize the set-cookie header and skips over it.

Fix this by searching for the Set-Cookie header in a case-insensitive manner.

@polarina polarina changed the base branch from master to PHP-7.3 September 16, 2020 14:33
@nikic
Copy link
Member

nikic commented Sep 16, 2020

Implementation looks reasonable to me. Is there a sensible way to test this (without accessing a remote server)?

@polarina
Copy link
Contributor Author

@nikic I didn't see any existing tests in the tests directory similar enough to base off on. I'm open to suggestions.

For what it's worth, I compiled and deployed an updated soap.so to our production server and it runs there without issues (vCenter 7.0 lower-cased all their HTTP response headers).

@php-pulls php-pulls closed this in efc52f1 Sep 17, 2020
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

Successfully merging this pull request may close these issues.

2 participants