Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpFoundation] fix false-positive ConflictingHeadersException#28144

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:2.8fromnicolas-grekas:http-fix
Aug 8, 2018

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedAug 6, 2018
edited
Loading

QA
Branch?2.8
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#28153
LicenseMIT
Doc PR-

Fixeshttps://jira.ez.no/browse/EZP-29492 &https://jira.ez.no/browse/EZP-29497
Ping@andrerom

// Remove port (unfortunately, it does happen)
if (preg_match('{((?:\d+\.){3}\d+)\:\d+}',$clientIp,$match)) {
$clientIps[$key] =$clientIp =$match[1];
if (strpos($clientIp,'.')) {
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

this part of the patch is a bugfix backported from 4.1, needed by the fix line 1946 (brackets should not be removed from the value)

);

Request::setTrustedProxies(array('88.88.88.88'));
Request::setTrustedProxies(array('88.88.88.88'), -1);
Copy link
MemberAuthor

@nicolas-grekasnicolas-grekasAug 6, 2018
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

wrongly set toRequest::HEADER_X_FORWARDED_ALL on 3.4+, this will act as a reminder by the conflict it will create when merging

@mateuszbieniek
Copy link

I can confirm that this PR fixedhttps://jira.ez.no/browse/EZP-29497 on my local installation.

andrerom reacted with thumbs up emoji

@nicolas-grekasnicolas-grekas merged commit6089290 intosymfony:2.8Aug 8, 2018
nicolas-grekas added a commit that referenced this pull requestAug 8, 2018
…ption (nicolas-grekas)This PR was merged into the 2.8 branch.Discussion----------[HttpFoundation] fix false-positive ConflictingHeadersException| Q             | A| ------------- | ---| Branch?       | 2.8| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#28153| License       | MIT| Doc PR        | -Fixeshttps://jira.ez.no/browse/EZP-29492 &https://jira.ez.no/browse/EZP-29497Ping@andreromCommits-------6089290 [HttpFoundation] fix false-positive ConflictingHeadersException
@nicolas-grekasnicolas-grekas deleted the http-fix branchAugust 8, 2018 08:10
@stloyd
Copy link
Contributor

@fabpot@nicolas-grekas Can we getv2.8.45 being released? Without this fix we can't upgrade to latest security fix (v2.8.44) release due to BC regression being fixed here.

andrerom, drAlberT, and jjborie reacted with thumbs up emoji

nicolas-grekas referenced this pull request in symfony/http-kernelAug 26, 2018
* 3.4:  [HttpKernel] fix trusted headers management in HttpCache and InlineFragmentRenderer
This was referencedAug 27, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

2.8

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@mateuszbieniek@stloyd@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp