1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-08 14:08:43 +01:00
psalm/docs/running_psalm/issues/TaintedXpath.md
2023-08-31 05:44:57 +02:00

13 lines
254 B
Markdown

# TaintedXpath
Emitted when user-controlled input can be passed into to a xpath query.
```php
<?php
function queryExpression(SimpleXMLElement $xml) : array|false|null {
$expression = $_GET["expression"];
return $xml->xpath($expression);
}
```