Skip to content

Commit

Permalink
Merge pull request #1642 from nowackipawel/patch-34
Browse files Browse the repository at this point in the history
CSP nonce attribute value in ""
  • Loading branch information
jim-parry authored Jan 1, 2019
2 parents ea61c6d + 84149ec commit 8a0f7b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/HTTP/ContentSecurityPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ protected function generateNonces(ResponseInterface &$response)

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

return "nonce={$nonce}";
return "nonce=\"{$nonce}\"";
}, $body
);

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

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

return "nonce={$nonce}";
return "nonce=\"{$nonce}\"";
}, $body
);

Expand Down

0 comments on commit 8a0f7b4

Please sign in to comment.