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 trailing slash matching with empty-matching trailing vars#31182

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 19, 2019

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedApr 19, 2019
edited
Loading

QA
Branch?4.2
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
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.

@nicolas-grekasnicolas-grekas added this to the4.2 milestoneApr 19, 2019
@nicolas-grekasnicolas-grekas merged commitd6da21a intosymfony:4.2Apr 19, 2019
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
@nicolas-grekasnicolas-grekas deleted the route-fix branchApril 19, 2019 14:35
@bmack
Copy link

Thanks for the fix@nicolas-grekas - works fine for TYPO3!

@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

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

3 participants

@nicolas-grekas@bmack@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp