Skip to content

Commit 28264c0

Browse files
committed
Fixed pathinfo mode 404 error (Rebuild array index of uri segments from array_filter())
1 parent 27bcbd1 commit 28264c0

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)