Issue Bug Closed

#100210TypolinkViewHelper will crash when using integer in additionalAttributes

Benjamin Serfhos 03/17/23, 16:30 updated 04/05/23, 09:53

Description

When using integer in additional attributes the declare(strict_types=1); now crashes on htmlspecialchars()

<f:link.typolink .. additionalAttributes="{tabindex: '-1'}"></f:link.typolink

The array is parsed to -1 integer and crashes with the message: htmlspecialchars(): Argument #1 ($string) must be of type string, int given

Reviews 2