From 5534f10ceebcc7fea19ff86709dc5820c3520f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Fri, 8 Nov 2024 12:21:13 +0100 Subject: [PATCH] use RFC3986 for query parameter encoding --- src/Routing/Route.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Routing/Route.php b/src/Routing/Route.php index 4ef0f2a..78c8ca9 100644 --- a/src/Routing/Route.php +++ b/src/Routing/Route.php @@ -53,7 +53,7 @@ class Route implements IRoute $queryParams[$key] = $value; } - $query = count($queryParams) > 0 ? '?' . http_build_query($queryParams) : ''; + $query = count($queryParams) > 0 ? '?' . http_build_query($queryParams, encoding_type: PHP_QUERY_RFC3986) : ''; return '/' . implode('/', $link) . $query; }