Project

General

Profile

Actions

Bug #104738

open

Fluid inline ternary operator breaks on special characters

Added by Felix Keßler 3 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2024-08-26
Due date:
% Done:

0%

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

Description

The code (line 14) should return the string "fal-se", but fails to do so and just displays the source-code on the web page.
I suspect the hyphen is the problem as without it, it works just fine (line 11). The problem only exists on the ternary operator as the code in line 13 works just fine.
I tried escaping the hyphen with a backslash, but it didn't help.
Please see the picture for clarification on what's the problem.


Files

fluid ternary operator bug.png (44.6 KB) fluid ternary operator bug.png different if-conditions and their respective output on the page Felix Keßler, 2024-08-26 13:25

No data to display

Actions

Also available in: Atom PDF