We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e420c03 commit dcd8634Copy full SHA for dcd8634
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