mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-09 06:28:28 +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[] = 'http:';
|
||||
}
|
||||
// Internet Explorer does not support 'nonce'
|
||||
if ($sScriptNonce && !$_SERVER['HTTP_USER_AGENT'] || (!\strpos($_SERVER['HTTP_USER_AGENT'], 'Trident/') && !\strpos($_SERVER['HTTP_USER_AGENT'], 'Edge/1'))) {
|
||||
$CSP->script[] = "'nonce-{$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