mirror of
https://github.com/danog/psalm.git
synced 2024-12-04 18:48:03 +01:00
254 B
254 B
TaintedXpath
Emitted when user-controlled input can be passed into to a xpath query.
<?php
function queryExpression(SimpleXMLElement $xml) : array|false|null {
$expression = $_GET["expression"];
return $xml->xpath($expression);
}