Project

General

Profile

Actions

Bug #102176

closed

Missing error suppression for preg_match in RedirectService

Added by Moritz Noll 9 months ago. Updated 5 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Redirect Handling
Target version:
-
Start date:
2023-10-16
Due date:
% Done:

100%

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

Description

You have a missing '@' sign in front of preg_match like the lines before to suppress the errors.
https://forge.typo3.org/projects/typo3cms-core/repository/1749/revisions/main/entry/typo3/sysext/redirects/Classes/Service/RedirectService.php#L162
I was able to raise an error there by calling an URL with parameter.


Files

exception.png (43.9 KB) exception.png Moritz Noll, 2023-10-16 09:45

Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #104190: restrict "Unsafe captching group regex"-message to only used replacementsNeeds Feedback2024-06-24

Actions
Actions #1

Updated by Chris Müller 9 months ago

  • Status changed from New to Needs Feedback

Suppressing an error might not be the best way.

Can you give more information which error was raised and how your URL looked like?

Actions #2

Updated by Moritz Noll 9 months ago

I called the URL 'http://localhost/xxx-shop/shop?ai[f_name]=ABC&ai[f_catid]=3&ai[controller]=Catalog&ai[action]=list'.
The error occurs at the linked line above.
In the attachment you see the error page.
Because in the same function the other both preg_macth calls are prefixed with '@' I've think that this one was forgotten.

Actions #3

Updated by Chris Müller 9 months ago

  • Status changed from Needs Feedback to New
Actions #4

Updated by Gerrit Code Review 7 days ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84872

Actions #5

Updated by Gerrit Code Review 7 days ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84872

Actions #6

Updated by Gerrit Code Review 7 days ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84872

Actions #7

Updated by Gerrit Code Review 6 days ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84872

Actions #8

Updated by Garvin Hicking 6 days ago

  • Related to Bug #104190: restrict "Unsafe captching group regex"-message to only used replacements added
Actions #9

Updated by Gerrit Code Review 5 days ago

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84842

Actions #10

Updated by Gerrit Code Review 5 days ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84843

Actions #11

Updated by Stefan Bürk 5 days ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF