Skip to content

Commit 57020f7

Browse files
authored
Merge pull request #1968 from viosion/fix_pathinfo_segments_0
Fixed pathinfo mode 404 error, rebuild array index of uri segments from array_filter()
2 parents 8ac5c73 + 28264c0 commit 57020f7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

system/Router/Router.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ public function autoRoute(string $uri)
565565
protected function validateRequest(array $segments): array
566566
{
567567
$segments = array_filter($segments);
568+
$segments = array_values($segments);
568569

569570
$c = count($segments);
570571
$directory_override = isset($this->directory);

0 commit comments

Comments
 (0)