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

[DependencyInjection][HttpClient][Routing] Reject URIs that contain invalid characters#58776

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

Conversation

nicolas-grekas
Copy link
Member

QA
Branch?7.2
Bug fix?no
New feature?no
Deprecations?no
Issues-
LicenseMIT

The behavior ofparse_url() doesn't match how browsers parse URLs. This PR ensures we won't accept URLs that are invalid perhttps://url.spec.whatwg.org/:

  • URLs that contain a backslash
  • or start/end with a control-char or a space
  • or contain a CR/LF/TAB character

@carsonbotcarsonbot added this to the7.2 milestoneNov 6, 2024
@carsonbotcarsonbot changed the title[DependencyInjection][Routing][HttpClient] Reject URIs that contain invalid characters[DependencyInjection][HttpClient][Routing] Reject URIs that contain invalid charactersNov 6, 2024
@nicolas-grekasnicolas-grekas merged commit352786c intosymfony:7.2Nov 6, 2024
7 of 10 checks passed
@fabpotfabpot mentioned this pull requestNov 6, 2024
@nicolas-grekasnicolas-grekas deleted the parse-url-hardening branchNovember 6, 2024 11:32
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
7.2
Development

Successfully merging this pull request may close these issues.

2 participants
@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp