mirror of
https://github.com/danog/psalm.git
synced 2024-12-03 10:07:52 +01:00
db566c7c4d
Ref #4590
16 lines
208 B
Markdown
16 lines
208 B
Markdown
# TaintedHtml
|
|
|
|
Emitted when user-controlled input can be passed into to an `echo` statement.
|
|
|
|
```php
|
|
<?php
|
|
|
|
$name = $_GET["name"];
|
|
|
|
printName($name);
|
|
|
|
function printName(string $name) {
|
|
echo $name;
|
|
}
|
|
```
|