From 443c3c199ee690b0121776db64f7ae2b668d04a6 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Mon, 21 Mar 2022 12:02:20 +0100 Subject: [PATCH] Drop IE/Trident detection --- snappymail/v/0.0.0/app/libraries/RainLoop/Service.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Service.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Service.php index 6feba4edf..2a5b627a5 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Service.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Service.php @@ -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));