Skip to content

Commit

Permalink
Merge pull request #31 from magento-cicd/jorsini/MTS-2096
Browse files Browse the repository at this point in the history
MTS-2096: PHP Code Sniffer: additional functions to block
  • Loading branch information
sivaschenko authored Aug 30, 2021
2 parents 20b1378 + 92e4d48 commit efc5f37
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Magento2/Sniffs/Security/InsecureFunctionSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,12 @@ class InsecureFunctionSniff extends ForbiddenFunctionsSniff
'srand' => null,
'mt_srand' => null,
'mt_rand' => 'random_int',
// Custom Rules - MTS-2096
'eval' => null,
'proc_nice' => null,
'proc_open' => null,
'proc_close' => null,
'proc_terminate' => null,
'proc_get_status' => null,
];
}

0 comments on commit efc5f37

Please sign in to comment.