use RFC3986 for query parameter encoding

This commit is contained in:
Bence Pőcze 2024-11-08 12:21:13 +01:00
parent c1fe1bb0e0
commit 5534f10cee
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

View File

@ -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;
}