Skip to content

Commit 478e402

Browse files
committed
Fix #460 - add strtolower calls to URI host and scheme
1 parent 49e34bc commit 478e402

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/Cache/IdentifierBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public function getFilepath(string $requestUri): string
3232
}
3333
$urlParts = parse_url($requestUri);
3434
$pageIdentifier = [
35-
'scheme' => $urlParts['scheme'] ?? 'https',
36-
'host' => $urlParts['host'] ?? 'invalid',
35+
'scheme' => strtolower($urlParts['scheme'] ?? 'https'),
36+
'host' => strtolower($urlParts['host'] ?? 'invalid'),
3737
'port' => $urlParts['port'] ?? ('https' === $urlParts['scheme'] ? 443 : 80),
3838
];
3939
$parts = [

0 commit comments

Comments
 (0)