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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user