Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Unicode breaks Zend/Mvc/Router/Http/* routing setups because it doesn't have unicode flags set on preg_match() calls. #7335

Closed
alerque opened this issue Mar 17, 2015 · 3 comments
Labels

Comments

@alerque
Copy link

alerque commented Mar 17, 2015

I just ran into a problem where my app won't work (related Stack Overflow question) because of Unicode characters in my URLs. None of the Zend router modules seem to handle this properly. Notably the regular expressions that get created and run when using constraints are not Unicode safe. Apprantly this isn't a very complicated fix, this SO answer suggests just one replacement function for the Regex route with only adding the Unicode flag to the preg_match() calls doing the job. The Segment router appears to be a bit more complicated to fix, but also doble.

While the code suggested in those posts is not current with the latest ZF2 release, it appears like this is something that would be relatively easy to fix and make compatible for everybody out of the box.

@weierophinney
Copy link
Member

@alerque Would you be interested/willing to create a pull request with the changes?

@AccountTrader
Copy link

And?

@GeeH
Copy link

GeeH commented Jun 28, 2016

This issue has been moved from the zendframework repository as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.html
New issue can be found at: zendframework/zend-mvc#175

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants