Skip to content

Commit 6157237

Browse files
author
Roger
committed
fix unit test
1 parent 991b4ac commit 6157237

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app/code/Magento/PageCache/Model/App/Request/Http/IdentifierForSave.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ public function getValue()
6060
*/
6161
private function reconstructUrl($url)
6262
{
63+
if (empty($url)) {
64+
return [$url, ''];
65+
}
6366
$baseUrl = strtok((string)$url, '?');
6467
$uri = UriFactory::factory($url);
6568
$query = $uri->getQueryAsArray();

lib/internal/Magento/Framework/App/PageCache/Identifier.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ public function getValue()
7171
*/
7272
private function reconstructUrl($url)
7373
{
74+
if (empty($url)) {
75+
return [$url, ''];
76+
}
7477
$baseUrl = strtok((string)$url, '?');
7578
$uri = UriFactory::factory($url);
7679
$query = $uri->getQueryAsArray();

0 commit comments

Comments
 (0)