mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 08:17:22 +01:00
feat(presets): update Security.php to restrict additional dangerous functions
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user