Skip to content

Commit 8367fb3

Browse files
AC-10686: [PCI] SRI enabled on payment pages
1 parent 06a9aa5 commit 8367fb3

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Csp/Model/Deploy/Package/Processor/PostProcessor

1 file changed

+2
-2
lines changed

app/code/Magento/Csp/Model/Deploy/Package/Processor/PostProcessor/Integrity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function __construct(
6464
public function process(Package $package, array $options): bool
6565
{
6666
$staticDir = $this->filesystem->getDirectoryRead(
67-
DirectoryList::STATIC_VIEW
67+
DirectoryList::ROOT
6868
);
6969

7070
foreach ($package->getFiles() as $file) {
@@ -73,7 +73,7 @@ public function process(Package $package, array $options): bool
7373
[
7474
"data" => [
7575
'hash' => $this->hashGenerator->generate(
76-
$staticDir->readFile($file->getDeployedFilePath())
76+
$staticDir->readFile($file->getSourcePath())
7777
),
7878
'path' => $file->getDeployedFilePath()
7979
]

0 commit comments

Comments
 (0)