Skip to content

Commit

Permalink
Merge pull request #7487 from ping-yee/fix-dir-separator
Browse files Browse the repository at this point in the history
fix: directory separator from routing file.
  • Loading branch information
kenjis authored May 14, 2023
2 parents dc0f85f + ee2a911 commit 38e0b6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions system/Router/RouteCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,11 @@ public function __construct(FileLocator $locator, Modules $moduleConfig, Routing
$this->autoRoute = $routing->autoRoute;
$this->routeFiles = $routing->routeFiles;
$this->prioritize = $routing->prioritize;

// Normalize the path string in routeFiles array.
foreach ($this->routeFiles as $routeKey => $routesFile) {
$this->routeFiles[$routeKey] = realpath($routesFile) ?: $routesFile;
}
}

/**
Expand Down

0 comments on commit 38e0b6e

Please sign in to comment.