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
Posted by Ben Scholzen (dasprid) on 2008-08-11T06:41:11.000+0000
Does a unit test cover this case yet?
Posted by Matthew Weier O'Phinney (matthew) on 2008-08-11T06:49:21.000+0000
Fixed in trunk with r10883 and in 1.6 release branch with r10884 (verified on #zftalk.dev)
Posted by Wil Sinclair (wil) on 2008-09-02T10:39:36.000+0000
Updating for the 1.6.0 release.