N°8440 Allow icon file ids to contain quotes, by correctly escaping language literals (XPath or PHP)

This commit is contained in:
Romain Quetiez
2025-06-13 09:55:25 +02:00
parent 0a4f9e95c5
commit 2086052d60
3 changed files with 9 additions and 3 deletions

View File

@@ -501,7 +501,8 @@ class DesignElement extends \DOMElement
{
$sSearchId = $oRefNode->getAttribute('id');
}
$sXPath = './'.$oRefNode->tagName."[@id='$sSearchId']";
$sQuotedId = DesignDocument::XPathQuote($sSearchId);
$sXPath = './'.$oRefNode->tagName."[@id=$sQuotedId]";
$oRes = $oXPath->query($sXPath, $oRoot);
}