From 84e0fa5756498e741281be68472f3cd4116c2a99 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Sun, 6 Nov 2022 14:45:12 +0100 Subject: [PATCH] Resolve #634 --- .../nextcloud/snappymail/lib/Controller/PageController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/nextcloud/snappymail/lib/Controller/PageController.php b/integrations/nextcloud/snappymail/lib/Controller/PageController.php index 850117465..188d9330e 100644 --- a/integrations/nextcloud/snappymail/lib/Controller/PageController.php +++ b/integrations/nextcloud/snappymail/lib/Controller/PageController.php @@ -84,7 +84,7 @@ class PageController extends Controller $csp = new ContentSecurityPolicy(); $csp->addAllowedScriptDomain("'self'"); - $csp->useStrictDynamic(true); + \method_exists($csp, 'useStrictDynamic') && $csp->useStrictDynamic(true); // NC24+ $csp->allowEvalScript(true); // $csp->addAllowedScriptDomain("'unsafe-eval'"); $csp->addAllowedStyleDomain("'self'"); $response->setContentSecurityPolicy($csp);