Skip to content

Commit

Permalink
Merge pull request #1968 from viosion/fix_pathinfo_segments_0
Browse files Browse the repository at this point in the history
Fixed pathinfo mode 404 error, rebuild array index of uri segments from array_filter()
  • Loading branch information
lonnieezell authored Apr 25, 2019
2 parents 8ac5c73 + 28264c0 commit 57020f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions system/Router/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ public function autoRoute(string $uri)
protected function validateRequest(array $segments): array
{
$segments = array_filter($segments);
$segments = array_values($segments);

$c = count($segments);
$directory_override = isset($this->directory);
Expand Down

0 comments on commit 57020f7

Please sign in to comment.