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

[Routing] fix matching trailing vars with defaults#31167

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:4.2fromnicolas-grekas:route-fix
Apr 18, 2019

Conversation

@nicolas-grekas
Copy link
Member

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

@nicolas-grekasnicolas-grekas merged commit177dfbc intosymfony:4.2Apr 18, 2019
nicolas-grekas added a commit that referenced this pull requestApr 18, 2019
…s-grekas)This PR was merged into the 4.2 branch.Discussion----------[Routing] fix matching trailing vars with defaults| Q             | A| ------------- | ---| Branch?       | 4.2| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#31158| License       | MIT| Doc PR        | -Commits-------177dfbc [Routing] fix matching trailing vars with defaults
@nicolas-grekasnicolas-grekas deleted the route-fix branchApril 18, 2019 13:35
nicolas-grekas added a commit that referenced this pull requestApr 19, 2019
…trailing vars (nicolas-grekas)This PR was merged into the 4.2 branch.Discussion----------[Routing] fix trailing slash matching with empty-matching trailing vars| Q             | A| ------------- | ---| Branch?       | 4.2| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -Reported by@bmack in#31107 (comment)This highlights a small inconsistency that exists for a long time (checked on 2.7 at least):`new Route('/en-en/{b}', ['b' => 'bbb'], ['b' => '.*'])` matches `/en-en/``new Route('/en-en/{b}', ['b' => 'bbb'], ['b' => '.+'])` doesn't match it(while both match `/en-en` and `/en-en/foo`)This PR ensures the former behavior is preserved, while#31167 redirects the later to `/en-en`.Commits-------d6da21a [Routing] fix trailing slash matching with empty-matching trailing vars
@fabpotfabpot mentioned this pull requestMay 1, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

3 participants

@nicolas-grekas@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp