From e71d33ca86174929979ddc2a38deda50dea932fc Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 19 Nov 2020 15:34:02 +0100 Subject: [PATCH] scrutinizer fix --- inc/fetch.functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/fetch.functions.php b/inc/fetch.functions.php index 743dba7b6..d1b15633b 100644 --- a/inc/fetch.functions.php +++ b/inc/fetch.functions.php @@ -31,7 +31,7 @@ function sendFile($file, $mime, $dl, $cache, $public = false, $orig = null, $csp header("Content-Type: $mime"); // send security policy if given - if ($csp) dokuwiki\HTTP\Headers::contentSecurityPolicy($csp); + if (!empty($csp)) dokuwiki\HTTP\Headers::contentSecurityPolicy($csp); // calculate cache times if($cache == -1) {