mirror of
https://github.com/danog/psalm.git
synced 2025-01-07 13:42:11 +01:00
251 B
251 B
TaintedXpath
Emitted when user-controlled input can be passed into a xpath query.
<?php
function queryExpression(SimpleXMLElement $xml) : array|false|null {
$expression = $_GET["expression"];
return $xml->xpath($expression);
}