Fixes #79265: Improper injection of Host header when using fopen for http requests#5201
Closed
miguelxpn wants to merge 1 commit intophp:PHP-7.3from
Closed
Fixes #79265: Improper injection of Host header when using fopen for http requests#5201miguelxpn wants to merge 1 commit intophp:PHP-7.3from
miguelxpn wants to merge 1 commit intophp:PHP-7.3from
Conversation
Member
|
New test is failing on Windows: |
Member
|
Okay, looks like that's just the skipif missing. |
Member
Member
|
I went ahead and changed the code to only recognize |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fopen currently only looks at the first instance of a string on the request headers when setting the flag if that header is present or not. That causes some problems as malformed requests with two instances of the Host: header. This patch checks every instance of the string to set up the flags correctly.