Issues

ZF-3922: Router no longer matches urls with trailing slashes

Description

Prior to 1.6.0RC2 sanity check packages, the following route:


routes.article.type = "Zend_Controller_Router_Route"
routes.article.route = "blog/articles/:id"
routes.article.defaults.controller = blog
routes.article.defaults.action = articles
routes.article.defaults.id = 0
routes.article.reqs.id = "[0-9]+"

would match both 'http://localhost/blog/articles/2000/' and 'http://localhost/blog/articles/2000'; currently, only the latter route now will match.

Comments

Does a unit test cover this case yet?

Fixed in trunk with r10883 and in 1.6 release branch with r10884 (verified on #zftalk.dev)

Updating for the 1.6.0 release.