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

Add support for encoded path #11

Merged
merged 1 commit into from
Apr 1, 2019
Merged

Conversation

smalot
Copy link
Contributor

@smalot smalot commented Mar 31, 2019

Decode url path before matching routes to work with any path with accent.

Example

Which should decoded as:

This is also done in Symfony:
https://github.com/symfony/symfony/blob/4.2/src/Symfony/Component/Routing/Matcher/UrlMatcher.php#L87

Decode url path before matching routes
@smalot smalot changed the title Update FastRoute.php Add support for encoded path Mar 31, 2019
@shadowhand
Copy link
Member

I really like this! @oscarotero what do you think? Seems like a simple fix and a win for non-English speakers.

@oscarotero oscarotero merged commit 0755714 into middlewares:master Apr 1, 2019
@oscarotero
Copy link
Member

@shadowhand I like it too. @smalot Many thanks for this.

oscarotero added a commit that referenced this pull request Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants