Skip to content

Commit 8304fab

Browse files
authored
Merge branch 'develop' into deprecated-methods
2 parents eb17063 + af37bad commit 8304fab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Magento2/Sniffs/Security/InsecureFunctionSniff.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class InsecureFunctionSniff extends ForbiddenFunctionsSniff
2020
public $forbiddenFunctions = [
2121
'assert' => null,
2222
'create_function' => null,
23-
'exec' => null,
23+
'exec' => '\Magento\Framework\Shell::execute',
2424
'md5' => 'improved hash functions (SHA-256, SHA-512 etc.)',
2525
'passthru' => null,
2626
'pcntl_exec' => null,

0 commit comments

Comments
 (0)