File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
app/code/Magento/PageCache/Model/App/Request/Http
lib/internal/Magento/Framework/App/PageCache Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \PageCache \Model \App \Request \Http ;
9
9
10
+ use Laminas \Uri \UriFactory ;
10
11
use Magento \Framework \App \Http \Context ;
11
12
use Magento \Framework \App \PageCache \IdentifierInterface ;
12
13
use Magento \Framework \App \Request \Http ;
@@ -48,7 +49,6 @@ public function getValue()
48
49
];
49
50
50
51
$ data = $ this ->identifierStoreReader ->getPageTagsWithStoreCacheTags ($ data );
51
-
52
52
return sha1 ($ this ->serializer ->serialize ($ data ));
53
53
}
54
54
@@ -61,7 +61,8 @@ public function getValue()
61
61
private function reconstructUrl ($ url )
62
62
{
63
63
$ baseUrl = strtok ((string )$ url , '? ' );
64
- $ query = $ this ->request ->getQuery ()->toArray ();
64
+ $ uri = UriFactory::factory ($ url );
65
+ $ query = $ uri ->getQueryAsArray ();
65
66
if (!empty ($ query )) {
66
67
ksort ($ query );
67
68
$ query = http_build_query ($ query );
Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Framework \App \PageCache ;
7
7
8
+ use Laminas \Uri \UriFactory ;
8
9
use Magento \Framework \App \ObjectManager ;
9
10
use Magento \Framework \Serialize \Serializer \Json ;
10
11
@@ -71,7 +72,8 @@ public function getValue()
71
72
private function reconstructUrl ($ url )
72
73
{
73
74
$ baseUrl = strtok ((string )$ url , '? ' );
74
- $ query = $ this ->request ->getQuery ()->toArray ();
75
+ $ uri = UriFactory::factory ($ url );
76
+ $ query = $ uri ->getQueryAsArray ();
75
77
if (!empty ($ query )) {
76
78
ksort ($ query );
77
79
$ query = http_build_query ($ query );
You can’t perform that action at this time.
0 commit comments