You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect a parameter passed to a segment route to always be escaped. When I pass an uri option when assembling a route, for whatever reason slashes in the route parameters are unescaped. This causes the route to no longer match correctly.
I expect the token parameter in the second case to also become encoded. For some reason passing an uri without normalize_path: false normalizes the path, unescaping the passed parameters.
Undesired normalization happens by default in these places:
I expect a parameter passed to a segment route to always be escaped. When I pass an
uri
option when assembling a route, for whatever reason slashes in the route parameters are unescaped. This causes the route to no longer match correctly.I expect the
token
parameter in the second case to also become encoded. For some reason passing anuri
withoutnormalize_path: false
normalizes the path, unescaping the passed parameters.Undesired normalization happens by default in these places:
https://github.com/zendframework/zend-router/blob/5ce5ff9630c4467e3eaf7cf06d78dbb2296a41b4/src/Http/TreeRouteStack.php#L420-L422
https://github.com/zendframework/zend-router/blob/5ce5ff9630c4467e3eaf7cf06d78dbb2296a41b4/src/Http/TreeRouteStack.php#L428-L430
Originally posted by @villermen at zendframework/zend-router#56
The text was updated successfully, but these errors were encountered: