forked from zendframework/zend-stratigility
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes path truncation in PathMiddlewareDecorator to be case insensitive
In zendframework#168, we received a report indicating that path matching within `PathMiddlewareDecorator` fails if the path is the same, but using a different case. Interestingly, we _match_ it correctly; the problem is when _preparing the truncated path_ to pass on to the decorated middleware, as it cannot identify the matched segment correctly. This patch modifies the logic in `getTruncatedPath()` to do a case-insensitive comparison of the segment and the path in the initial condition.
- Loading branch information
1 parent
f946cdc
commit 44f8885
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters