From 665968d27d1881868b7596370250c896f3432223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Lundstr=C3=B6m?= Date: Thu, 24 Apr 2025 09:28:14 +0200 Subject: [PATCH] do not trim null --- src/Helper/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Helper/Router.php b/src/Helper/Router.php index e4d9d84..ae54fac 100644 --- a/src/Helper/Router.php +++ b/src/Helper/Router.php @@ -13,7 +13,7 @@ public function __construct($routes = array()) { public function route($input) { - $input = trim($input, '/'); + $input = $input == null ? '' : trim($input, '/'); foreach($this->routes as $route => $controller) { $this->keys = array();