mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°8440 Allow icon file ids to contain quotes, by correctly escaping language literals (XPath or PHP)
This commit is contained in:
@@ -2610,6 +2610,10 @@ class MFDocument extends \Combodo\iTop\DesignDocument
|
||||
$oResult = $oXPath->query($sXPath, $oContextNode);
|
||||
}
|
||||
|
||||
if ($oResult === false) {
|
||||
throw new \Exception("Invalid XPath: $sXPath");
|
||||
}
|
||||
|
||||
return $oResult;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user