Skip to content

Commit efc5f37

Browse files
authored
Merge pull request #31 from magento-cicd/jorsini/MTS-2096
MTS-2096: PHP Code Sniffer: additional functions to block
2 parents 20b1378 + 92e4d48 commit efc5f37

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: Magento2/Sniffs/Security/InsecureFunctionSniff.php

+7
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,12 @@ class InsecureFunctionSniff extends ForbiddenFunctionsSniff
3333
'srand' => null,
3434
'mt_srand' => null,
3535
'mt_rand' => 'random_int',
36+
// Custom Rules - MTS-2096
37+
'eval' => null,
38+
'proc_nice' => null,
39+
'proc_open' => null,
40+
'proc_close' => null,
41+
'proc_terminate' => null,
42+
'proc_get_status' => null,
3643
];
3744
}

0 commit comments

Comments
 (0)