Project

General

Profile

Actions

Bug #100210

closed

TypolinkViewHelper will crash when using integer in additionalAttributes

Added by Benjamin Serfhos about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
Start date:
2023-03-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

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

Actions

Also available in: Atom PDF