Repository navigation
[13.x] Add EncodedParameter to RouteUrlGenerator - #61610
Merged
Merged
Conversation
|
Is this going to be backported to 12.x so #61499 gets covered? |
This was referenced Sep 29, 2026
binaryfire
added a commit
to hypervel/components-backup
that referenced
this pull request
Oct 1, 2026
Add EncodedParameter and the upstream encodeParameter extension point. Preserve existing percent, delimiter and brace escaping for ordinary values and retain raw serving-route paths. Include percent round-trip and encoded-parameter regressions, signed URL coverage, consistent docblock wording and usage documentation. Upstream: laravel/framework#61475 Upstream: laravel/framework#61610 Upstream: laravel/framework#61631 Framework source: 7068848dfe48fc3a433598e09ce798799d442a52. Documentation source: laravel/docs 13.x at ec28ad6ee78ebeada6095e05d33da7e8c42dd6dc. Validated with affected tests, repository formatting, full source and type-fixture analysis, and the full parallel test suite.
This was referenced Oct 4, 2026
taylorotwell
pushed a commit
that referenced
this pull request
Oct 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds
Illuminate\Routing\EncodedParameter, a smallStringablewrapper that marks a value as already encoded.RouteUrlGenerator::encodeParameter()substitutes a wrapped value as-is and encodes everything else exactly as before.This returns the routing behaviour prior to efcf1ea with a opt-in option so that the security fix isn't lost.
Closes #61499