Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazor: Decode URL segments in RouteContext #8759

Merged
merged 2 commits into from
Jun 25, 2019
Merged

Conversation

hexawyz
Copy link
Contributor

@hexawyz hexawyz commented Mar 23, 2019

Change RouteContext, to URL-decode every route segment. This happens before they are matched in RouteEntry, so both static route segments and route parameters are handled.

The current implementation of TemplateParser seems pretty relaxed and only splits on the character /, so unless we want to support route segments containing escaped / characters, the change on RouteContext should be enough.

Addresses #5510

@dnfclas
Copy link

dnfclas commented Mar 23, 2019

CLA assistant check
All CLA requirements met.

@Eilon Eilon added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Mar 25, 2019
@mkArtakMSFT
Copy link
Member

@javiercn have you looked at the latest update of this PR? What is pending here?

@javiercn
Copy link
Member

I think this can be merged.

@javiercn javiercn merged commit bf95c94 into dotnet:master Jun 25, 2019
@javiercn
Copy link
Member

Merged! Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants