mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Do not send empty CSP
This commit is contained in:
@@ -97,7 +97,9 @@ function page_headers() {
|
||||
foreach ($adminer->csp() as $key => $val) {
|
||||
$csp[] = "$key $val";
|
||||
}
|
||||
header("Content-Security-Policy: " . implode("; ", $csp));
|
||||
if ($csp) {
|
||||
header("Content-Security-Policy: " . implode("; ", $csp));
|
||||
}
|
||||
$adminer->headers();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user