Skip to content

Commit 5a952f4

Browse files
committed
MAGETWO-66047: Remove usages of unserialize in module Magento/Framework/App/PageCache
1 parent 946c273 commit 5a952f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ public function getValue()
4545
$this->request->get(\Magento\Framework\App\Response\Http::COOKIE_VARY_STRING)
4646
?: $this->context->getVaryString()
4747
];
48-
return md5(json_encode($data));
48+
return sha1(json_encode($data));
4949
}
5050
}

lib/internal/Magento/Framework/App/Test/Unit/PageCache/IdentifierTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function testGetValue()
145145
->will($this->returnValue(self::VARY));
146146

147147
$this->assertEquals(
148-
md5(
148+
sha1(
149149
json_encode(
150150
[
151151
true,

0 commit comments

Comments
 (0)