mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 17:07:03 +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[] = 'https:';
|
||||||
$CSP->img[] = 'http:';
|
$CSP->img[] = 'http:';
|
||||||
}
|
}
|
||||||
$CSP->script[] = "'nonce-{$sScriptNonce}'";
|
if ($sScriptNonce) {
|
||||||
|
$CSP->script[] = "'nonce-{$sScriptNonce}'";
|
||||||
|
}
|
||||||
|
|
||||||
Api::Actions()->Plugins()->RunHook('main.content-security-policy', array($CSP));
|
Api::Actions()->Plugins()->RunHook('main.content-security-policy', array($CSP));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue