-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] allow turning routes to utf8 mode by default #27774
New iss 8000 ue
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
what is the impact of enabling |
A URL containing above-ASCII chars presented in a non-UTF8 charset by a browser would be 404 where it would not necessarily today. But when the app is configured with |
I agree with @stof. This looks absolutely reasonable and the right thing to do 👍 ... but I can't imagine the consequences (if any): would any route matching change? would routing performance be lower? etc. |
8cac688
to
591150b
Compare
To be extra safe, I added a new config option to enable utf8 mode, off by default, with a note in UPGRADE-4.2 to invite to turn it on. |
591150b
to
8f359cc
Compare
Thank you @nicolas-grekas. |
… default (nicolas-grekas) This PR was merged into the 4.2-dev branch. Discussion ---------- [FrameworkBundle] allow turning routes to utf8 mode by default | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - This allows building optimized routers that match in a single regexp instead of an alternate of utf8/non-utf8 set of routes. Commits ------- 8f359cc [FrameworkBundle] allow turning routes to utf8 mode by default
This allows building optimized routers that match in a single regexp instead of an alternate of utf8/non-utf8 set of routes.