Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin de Graaf committed Oct 8, 2017
2 parents cb709fd + b093c82 commit 00a0c88
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Parable PHP Framework Changelog

### 0.12.12

__Bugfixes__
- Bug in `\Parable\\Routing\Route::isPartCountSame($url)`, where trailing slash vs no trailing slash would be considered not the same. Fixed in PR #25 by @jerry1970.

### 0.12.11

__Bugfixes__
Expand Down
2 changes: 1 addition & 1 deletion src/Framework/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class App
protected $database;

/** @var string */
protected $version = '0.12.11';
protected $version = '0.12.12';

public function __construct(
\Parable\Filesystem\Path $path,
Expand Down
2 changes: 1 addition & 1 deletion src/Routing/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public function isAcceptedRequestMethod()
*/
public function isPartCountSame($url)
{
return count(explode('/', $url)) === count(explode('/', $this->url));
return count(explode('/', rtrim($url, '/'))) === count(explode('/', rtrim($this->url, '/')));
}

/**
Expand Down

0 comments on commit 00a0c88

Please sign in to comment.