diff --git a/Route.php b/Route.php index ab8a190..3a9707d 100644 --- a/Route.php +++ b/Route.php @@ -22,6 +22,8 @@ abstract class Route $url_path_parts = explode('/', self::$prefix . $url_path); $callback_args = []; for ($i = 1; $i < count($url_path_parts); $i++) { + if ($url_path_parts[$i] === '') + continue; if ($url_path_parts[$i][0] !== '$') continue; if (!isset($request_url_path_parts[$i]))