We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
UriTag
1 parent c715702 commit 4d43abfCopy full SHA for 4d43abf
1 file changed
src/UriTag.php
@@ -27,6 +27,7 @@ public function __invoke(AbstractUri $uri): string
27
ksort($query);
28
29
$uriKey = sprintf('%s_%s', $uri->path, http_build_query($query));
30
+
31
// Sanitize the URI key by replacing special characters (/, ?, &) with underscores
32
// to ensure it is a valid surrogate key and make it enable with Symfony cache adapter
33
return str_replace(['/', '?', '&'], '_', $uriKey);
0 commit comments