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] drop support for HTTP method override for GET, HEAD, CONNECT and TRACE requests#62042

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:8.0fromxabbuh:pr-61949
Oct 12, 2025

Conversation

@xabbuh
Copy link
Member

QA
Branch?8.0
Bug fix?no
New feature?yes
Deprecations?no
Issues
LicenseMIT


$method =strtoupper($method);

if (\in_array($method, ['GET','HEAD','CONNECT','TRACE'],true)) {
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I wonder if we should forbid (in 7.4) listing any of these methods in$allowedHttpMethodOverride

Choose a reason for hiding this comment

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

And return a 400?
I wondered the same and thought: what for in the end?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I was thinking of throwing an exception ifsetAllowedHttpMethodOverride() is called with a list of methods of which one or more are matching this list.

Choose a reason for hiding this comment

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

Ah, yes, that'd work for me, to spot misconfigs earlier

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

@nicolas-grekas
Copy link
Member

Thank you@xabbuh.

@nicolas-grekasnicolas-grekas merged commitb6d7b24 intosymfony:8.0Oct 12, 2025
9 of 10 checks passed
@xabbuhxabbuh deleted the pr-61949 branchOctober 12, 2025 09:58
nicolas-grekas added a commit that referenced this pull requestOct 14, 2025
…rride of GET, HEAD, CONNECT and TRACE (xabbuh)This PR was merged into the 7.4 branch.Discussion----------[FrameworkBundle][HttpFoundation] forbid HTTP method override of GET, HEAD, CONNECT and TRACE| Q             | A| ------------- | ---| Branch?       | 7.4| Bug fix?      | no| New feature?  | no| Deprecations? | no| Issues        | see#62042 (comment)| License       | MITCommits-------1b79380 forbid HTTP method override of GET, HEAD, CONNECT and TRACE
@fabpotfabpot mentioned this pull requestOct 27, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

Assignees

No one assigned

Projects

None yet

Milestone

8.0

Development

Successfully merging this pull request may close these issues.

3 participants

@xabbuh@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp