Skip to content

Commit

Permalink
forbid shell_exec
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Mar 22, 2024
1 parent 55271ac commit 0c453ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
<property name="forbiddenFunctions" type="array">
<element key="echo" value="null"/>
<element key="echo" value="$output->writeln"/>
<element key="shell_exec" value="$localmachinehelper->execute"/>
</property>
</properties>
</rule>
Expand Down

0 comments on commit 0c453ac

Please sign in to comment.