N°3224 - migration audit tool - allow php functions in XPath

This commit is contained in:
Eric
2021-08-26 11:54:45 +02:00
parent 7f37c5912a
commit 97e0150974

View File

@@ -2581,6 +2581,10 @@ class MFDocument extends \Combodo\iTop\DesignDocument
public function GetNodes($sXPath, $oContextNode = null, $bSafe = true)
{
$oXPath = new DOMXPath($this);
// For Designer audit
$oXPath->registerNamespace("php", "http://php.net/xpath");
$oXPath->registerPhpFunctions();
if ($bSafe)
{
$sXPath .= "[not(@_alteration) or @_alteration!='removed']";