mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 09:37:59 +01:00
db566c7c4d
Ref #4590
299 B
299 B
TaintedText
Emitted when tainted text is detected somewhere unexpected.
This can lead to dangerous situations, like running arbitrary functions.
<?php
$name = $_GET["name"];
evalCode($name);
function evalCode(string $name) {
if (is_callable($name)) {
$name();
}
}