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

History 25

  1. Gerrit Code Review pushed patch set 1 for main to change 78158 status New Under Review 03/17/23, 16:33

  2. Gerrit Code Review pushed patch set 2 for main to change 78158 03/20/23, 15:45

  3. Gerrit Code Review pushed patch set 3 for main to change 78158 03/20/23, 15:50

  4. Benjamin Serfhos commented and changed status Under Review Resolved done 0 % 100 % 03/20/23, 21:55

    Applied in changeset commit:a8e0f47a2e22c0524d3781294c2ed2bdc4d8a12f.

  5. Benni Mack changed status Resolved Closed 04/05/23, 09:53