Skip to content

Commit

Permalink
Fixed issue in path matching middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrankruijter committed Jan 17, 2021
1 parent c38284c commit f9955ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
- Fixed issue where it was possible to get more output after a 404 was generated.
- Fixed issue path and route were not equally treated in path matching middleware.

## 3.0.0 - 2021-01-17

Expand Down Expand Up @@ -42,7 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- The initial implementation of the package.

# Versions
- [3.0.1 > Unreleased](https://github.com/ulrack/web/compare/3.0.0...HEAD)
- [3.0.1 > Unreleased](https://github.com/ulrack/web/compare/3.0.1...HEAD)
- [3.0.0 > 3.0.1](https://github.com/ulrack/web/compare/3.0.0...3.0.1)
- [2.0.0 > 3.0.0](https://github.com/ulrack/web/compare/2.0.0...3.0.0)
- [1.0.1 > 2.0.0](https://github.com/ulrack/web/compare/1.0.1...2.0.0)
Expand Down
1 change: 1 addition & 0 deletions src/Component/Middleware/PathMatchingMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ private function getParameters(
string $path
): ?array {
$route = trim($route, '/');
$path = trim($path, '/');

$matchParam = preg_match(
'/{[^\/]+}/',
Expand Down

0 comments on commit f9955ee

Please sign in to comment.