mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Drop IE/Trident detection
This commit is contained in:
parent
936e190908
commit
443c3c199e
1 changed files with 1 additions and 4 deletions
|
|
@ -256,10 +256,7 @@ abstract class Service
|
||||||
$CSP->img[] = 'https:';
|
$CSP->img[] = 'https:';
|
||||||
$CSP->img[] = 'http:';
|
$CSP->img[] = 'http:';
|
||||||
}
|
}
|
||||||
// Internet Explorer does not support 'nonce'
|
$CSP->script[] = "'nonce-{$sScriptNonce}'";
|
||||||
if ($sScriptNonce && !$_SERVER['HTTP_USER_AGENT'] || (!\strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/') && !\strpos($_SERVER['HTTP_USER_AGENT'], 'Edge/1'))) {
|
|
||||||
$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