Bug #102176
openMissing error suppression for preg_match in RedirectService
0%
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
Updated by Chris Müller 7 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?
Updated by Moritz Noll 7 months ago
- File exception.png exception.png added
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.