Project

General

Profile

Actions

Bug #86257

closed

Invalid TypoScript condition expressions breaks TYPO3

Added by Frank Nägler over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
TypoScript
Target version:
Start date:
2018-09-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The symfony expression language has no type check, which results in PHP Warnings in case the in expression is used without an array.
example:

[1 in "foo"] will throw a PHP Warning: in_array() expects parameter 2 to be array

This case should be handled by the core in two different ways:

1) In Frontend a InvalidTypoScriptConditionException should be thrown (if strictSyntax feature toggle is enabled)
2) In Frontend silent catch this error and log it (if strictSyntax feature toggle is disabled)
3) In Backend silent catch this error and log it, but never break the backend.

Actions

Also available in: Atom PDF