Skip to content

Commit 81b20ee

Browse files
committed
N°8168 - Stored XSS in portals lnk
1 parent 38683c2 commit 81b20ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/renderer/bootstrap/fieldrenderer/bslinkedsetfieldrenderer.class.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ protected function PrepareItems(&$aItems, &$aItemIds)
611611
if ($oAttDef->IsExternalKey())
612612
{
613613
/** @var \AttributeExternalKey $oAttDef */
614-
$aAttProperties['value'] = $oRemoteItem->Get($sAttCode . '_friendlyname');
614+
$aAttProperties['value'] = \Str::pure2html($oRemoteItem->Get($sAttCode . '_friendlyname'));
615615

616616
// Checking if user can access object's external key
617617
$sObjectUrl = ApplicationContext::MakeObjectUrl($oAttDef->GetTargetClass(), $oRemoteItem->Get($sAttCode));

0 commit comments

Comments
 (0)