mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Bugfix: don't set empty CSP script nonce-
This commit is contained in:
parent
5fbca6fe48
commit
68309e5f7b
1 changed files with 3 additions and 1 deletions
|
|
@ -249,7 +249,9 @@ abstract class Service
|
|||
$CSP->img[] = 'https:';
|
||||
$CSP->img[] = 'http:';
|
||||
}
|
||||
$CSP->script[] = "'nonce-{$sScriptNonce}'";
|
||||
if ($sScriptNonce) {
|
||||
$CSP->script[] = "'nonce-{$sScriptNonce}'";
|
||||
}
|
||||
|
||||
Api::Actions()->Plugins()->RunHook('main.content-security-policy', array($CSP));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue