Skip to content

Commit 8a0f7b4

Browse files
authored
Merge pull request #1642 from nowackipawel/patch-34
CSP nonce attribute value in ""
2 parents ea61c6d + 84149ec commit 8a0f7b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/HTTP/ContentSecurityPolicy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ protected function generateNonces(ResponseInterface &$response)
683683

684684
$this->styleSrc[] = 'nonce-' . $nonce;
685685

686-
return "nonce={$nonce}";
686+
return "nonce=\"{$nonce}\"";
687687
}, $body
688688
);
689689

@@ -694,7 +694,7 @@ protected function generateNonces(ResponseInterface &$response)
694694

695695
$this->scriptSrc[] = 'nonce-' . $nonce;
696696

697-
return "nonce={$nonce}";
697+
return "nonce=\"{$nonce}\"";
698698
}, $body
699699
);
700700

0 commit comments

Comments
 (0)