feat(presets): update Security.php to restrict additional dangerous functions

This commit is contained in:
Punyapal Shah
2024-06-11 21:02:19 +05:30
parent e4550c8d51
commit 4396ee2e03
2 changed files with 12 additions and 3 deletions

View File

@ -23,7 +23,15 @@ final class Security extends AbstractPreset
'tempnam',
'str_shuffle',
'shuffle',
'array_rand'
'array_rand',
'eval',
'exec',
'shell_exec',
'system',
'passthru',
'create_function',
'unserialize',
'extract',
])->not->toBeUsed();
}
}