Skip to content

Commit

Permalink
Update App.php
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Nov 25, 2020
1 parent d5057ec commit 7b5290c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ protected static function parseControllerAction($path)
}
return false;
}
if ($path[0] === '/') {
if ($path && $path[0] === '/') {
$path = \substr($path, 1);
}
$explode = \explode('/', $path);
Expand Down Expand Up @@ -536,4 +536,4 @@ protected static function tryToGracefulExit()
});
}
}
}
}

0 comments on commit 7b5290c

Please sign in to comment.