1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 14:46:36 +02:00

Plugins: Allow changing CSP by more plugins

This commit is contained in:
Jakub Vrana
2025-03-31 20:20:09 +02:00
parent 595c228175
commit 9f3f3b9515
5 changed files with 9 additions and 9 deletions

View File

@@ -86,10 +86,11 @@ class Adminer {
}
/** Get Content Security Policy headers
* @return list<string[]> of arrays with directive name in key, allowed sources in value
* @param list<string[]> $csp of arrays with directive name in key, allowed sources in value
* @return list<string[]> same as $csp
*/
function csp(): array {
return csp();
function csp(array $csp): array {
return $csp;
}
/** Print HTML code inside <head>