Project

General

Profile

Actions

Bug #92362

closed

Bug in regular expression in FormDefinitionConversionService.php

Added by Christian Loth over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2020-09-21
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.3
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

Hello,

I think I found a bug in the form sys extension in Classes/Domain/Configuration/FormDefinitionConversionService.php

There is a regular expression in line 57: (^identifier$|renderables\.([\d]+).\identifier$)

The last escape \ escapes the 'i' and not the '.' ... this triggered an error for me
in an installation with custom debugging. I think the correct regular expression should be:

(^identifier$|renderables\.([\d]+)\.identifier$)

The wrong regexp is present in both T3 v9 and v10.

A patch diff file is attached.


Files

form-patch.diff (796 Bytes) form-patch.diff Christian Loth, 2020-09-21 16:45
Actions

Also available in: Atom PDF