scrutinizer fix
This commit is contained in:
parent
01648efd47
commit
e71d33ca86
|
@ -31,7 +31,7 @@ function sendFile($file, $mime, $dl, $cache, $public = false, $orig = null, $csp
|
||||||
header("Content-Type: $mime");
|
header("Content-Type: $mime");
|
||||||
|
|
||||||
// send security policy if given
|
// send security policy if given
|
||||||
if ($csp) dokuwiki\HTTP\Headers::contentSecurityPolicy($csp);
|
if (!empty($csp)) dokuwiki\HTTP\Headers::contentSecurityPolicy($csp);
|
||||||
|
|
||||||
// calculate cache times
|
// calculate cache times
|
||||||
if($cache == -1) {
|
if($cache == -1) {
|
||||||
|
|
Loading…
Reference in New Issue