From ad655ef2be274970ebadc2ef463afe74615f4ecc Mon Sep 17 00:00:00 2001 From: William Date: Wed, 13 Nov 2024 20:28:28 +0000 Subject: [PATCH] Hotfixxx --- Route.php | 2 ++ 1 file changed, 2 insertions(+) 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]))