From 28264c0827d3995ba1202b55c777e12a9b58cbce Mon Sep 17 00:00:00 2001 From: Davy <33629937@qq.com> Date: Tue, 23 Apr 2019 22:49:41 +0800 Subject: [PATCH] Fixed pathinfo mode 404 error (Rebuild array index of uri segments from array_filter()) --- system/Router/Router.php | 1 + 1 file changed, 1 insertion(+) diff --git a/system/Router/Router.php b/system/Router/Router.php index 0bb743028d33..1db8d11e1157 100644 --- a/system/Router/Router.php +++ b/system/Router/Router.php @@ -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);