diff --git a/typo3/sysext/fluid/Classes/ViewHelpers/Link/TypolinkViewHelper.php b/typo3/sysext/fluid/Classes/ViewHelpers/Link/TypolinkViewHelper.php index b7bf19a4d506f1b8287e1b423b785944a0e8aa39..7d2d389e6a1097fb5b749901c15e57ee19f76e13 100644 --- a/typo3/sysext/fluid/Classes/ViewHelpers/Link/TypolinkViewHelper.php +++ b/typo3/sysext/fluid/Classes/ViewHelpers/Link/TypolinkViewHelper.php @@ -192,7 +192,7 @@ class TypolinkViewHelper extends AbstractViewHelper $extraAttributes = []; $additionalAttributes = $arguments['additionalAttributes'] ?? []; foreach ($additionalAttributes as $attributeName => $attributeValue) { - $extraAttributes[] = $attributeName . '="' . htmlspecialchars($attributeValue) . '"'; + $extraAttributes[] = $attributeName . '="' . htmlspecialchars((string)$attributeValue) . '"'; } return implode(' ', $extraAttributes); }