We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 642cf3b + dcd8634 commit 689c933Copy full SHA for 689c933
system/Router/RouteCollection.php
@@ -319,6 +319,10 @@ public function loadRoutes(string $routesFile = APPPATH . 'Config/Routes.php')
319
return $this;
320
}
321
322
+ // Normalize the path string in routesFile
323
+ $realpath = realpath($routesFile);
324
+ $routesFile = ($realpath === false) ? $routesFile : $realpath;
325
+
326
// Include the passed in routesFile if it doesn't exist.
327
// Only keeping that around for BC purposes for now.
328
$routeFiles = $this->routeFiles;
0 commit comments