Skip to content

Commit

Permalink
capital
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderT2001 committed Apr 16, 2020
1 parent ffeb7c6 commit a030b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/RequestObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function __construct(array $serverVars, array $routes = [])

// index.php is the name of the file containing the Front Controller.
$root = str_replace('index.php', '', $indexPath);
// if the root is /, then don't perform a str_replace, because that would also remove all the / in the requestedpath
// If the root is /, then don't perform a str_replace, because that would also remove all the / in the requestedpath
$controllerAction = (strlen($root) === 1) ? ltrim($requestedPath, '/') : str_replace($root, '', $requestedPath);
if (empty($controllerAction)) {
$controllerAction = '/';
Expand Down

0 comments on commit a030b06

Please sign in to comment.