Skip to content

Commit b4439e0

Browse files
author
Roger
committed
update code
1 parent 05420b6 commit b4439e0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ private function reconstructUrl($url)
6161
if (!empty($query)) {
6262
ksort($query);
6363
$query = http_build_query($query);
64+
} else {
65+
$query = '';
6466
}
6567
return [$baseUrl, $query];
6668
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ private function reconstructUrl($url)
7575
if (!empty($query)) {
7676
ksort($query);
7777
$query = http_build_query($query);
78+
} else {
79+
$query = '';
7880
}
7981
return [$baseUrl, $query];
8082
}

0 commit comments

Comments
 (0)