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
{{ message }}
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.
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:
zend-router/src/Http/TreeRouteStack.php
Lines 420 to 422 in 5ce5ff9
zend-router/src/Http/TreeRouteStack.php
Lines 428 to 430 in 5ce5ff9
The text was updated successfully, but these errors were encountered: