diff --git a/src/Services/LogSystem/LogEntryExtraFormatter.php b/src/Services/LogSystem/LogEntryExtraFormatter.php index ae2a5eba..13394d98 100644 --- a/src/Services/LogSystem/LogEntryExtraFormatter.php +++ b/src/Services/LogSystem/LogEntryExtraFormatter.php @@ -169,8 +169,8 @@ class LogEntryExtraFormatter $array['log.collection_deleted.deleted'] = sprintf( '%s: %s (%s)', $this->elementTypeNameGenerator->getLocalizedTypeLabel($context->getDeletedElementClass()), - $context->getOldName() ?? (string) $context->getDeletedElementID(), - $context->getCollectionName() + htmlspecialchars($context->getOldName() ?? (string) $context->getDeletedElementID()), + htmlspecialchars($context->getCollectionName()) ); } @@ -218,4 +218,4 @@ class LogEntryExtraFormatter return implode(', ', $output); } -} +} \ No newline at end of file