Skip to content

Commit e204ef3

Browse files
committed
Add Memcached support to CI workflow for macOS setup
1 parent 0446f86 commit e204ef3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/UriTag.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ public function __invoke(AbstractUri $uri): string
2626
$query = $uri->query;
2727
ksort($query);
2828

29-
return str_replace('/', '_', sprintf('%s_%s', $uri->path, http_build_query($query)));
29+
// Ensure all forward slashes are replaced, including the leading slash
30+
$path = str_replace('/', '_', $uri->path);
31+
return sprintf('%s_%s', $path, http_build_query($query));
3032
}
3133

3234
/**

0 commit comments

Comments
 (0)