N°8168 - Stored XSS in portals lnk

This commit is contained in:
bdalsass
2025-05-23 08:42:56 +02:00
parent 38683c20b1
commit 81b20ee583

View File

@@ -611,7 +611,7 @@ JS
if ($oAttDef->IsExternalKey())
{
/** @var \AttributeExternalKey $oAttDef */
$aAttProperties['value'] = $oRemoteItem->Get($sAttCode . '_friendlyname');
$aAttProperties['value'] = \Str::pure2html($oRemoteItem->Get($sAttCode . '_friendlyname'));
// Checking if user can access object's external key
$sObjectUrl = ApplicationContext::MakeObjectUrl($oAttDef->GetTargetClass(), $oRemoteItem->Get($sAttCode));