Set harder security constraints
phpcs-errors:0 phpunit-status:successful phpstan-errors:665
This commit is contained in:
21
public/security.php
Normal file
21
public/security.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?PHP
|
||||
/**
|
||||
* Generates a CSV template based on the field list provided for CSVXML.
|
||||
*
|
||||
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
|
||||
*/
|
||||
declare(strict_types = 1);
|
||||
require_once __DIR__ . "/../functions/functions.php";
|
||||
|
||||
header("Content-type: text/plain");
|
||||
echo MD_JAIL::check_server_setup([
|
||||
"shell_access_whitelist" => [],
|
||||
"sys_function_whitelist" => ["getenv"],
|
||||
"file_function_whitelist" => [],
|
||||
"file_uploads" => true,
|
||||
"allow_url_fopen" => false,
|
||||
"max_input_vars" => 100, // Default: 1000
|
||||
"max_input_nesting_level" => 10, // Default: 1000
|
||||
"post_max_size" => "4M",
|
||||
"curl" => false,
|
||||
]);
|
Reference in New Issue
Block a user