From 329c5e8c765d152e027b41ba9a25cd9c1c3a88c2 Mon Sep 17 00:00:00 2001 From: n1rwana Date: Thu, 10 Aug 2023 00:50:43 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BE=D1=88=D0=B8?= =?UTF-8?q?=D0=B1=D0=BA=D0=B8=20500=20=D0=BF=D1=80=D0=B8=20=D0=BD=D0=B5?= =?UTF-8?q?=D1=81=D0=BA=D0=BE=D0=BB=D1=8C=D0=BA=D0=B8=D1=85=20=D1=81=D0=BB?= =?UTF-8?q?=D1=8D=D1=88=D0=B0=D1=85=20=D0=B2=20URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chandler/MVC/Routing/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chandler/MVC/Routing/Router.php b/chandler/MVC/Routing/Router.php index b6e0e6c..25a270a 100644 --- a/chandler/MVC/Routing/Router.php +++ b/chandler/MVC/Routing/Router.php @@ -278,7 +278,7 @@ class Router function execute(string $url, ?string $parentModule = null): ?string { $this->scope = []; - $this->url = chandler_escape_url(parse_url($url, PHP_URL_PATH)); + $this->url = chandler_escape_url((string) parse_url(preg_replace("%/+%", "/", $url), PHP_URL_PATH)); if(!is_null($parentModule)) { $GLOBALS["parentModule"] = $parentModule;