From 814d7bf8a1b1988085361d3e5b03acbd7af69634 Mon Sep 17 00:00:00 2001
From: Christoph Lehmann <christoph.lehmann@networkteam.com>
Date: Mon, 24 Apr 2023 09:53:24 +0200
Subject: [PATCH] [BUGFIX] Do not log requests with unsupported HTTP method

Illegal requests should not fill log files.

The Exception is thrown in \TYPO3\CMS\Core\Http\Request::validateMethod()

Resolves: #100718
Releases: main, 11.5
Change-Id: I202fba9e76ac00ab11e02dc401633b383b0048b6
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78734
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Benni Mack <benni@typo3.org>
---
 typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php b/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php
index 04cb02bf1240..41ce2e0f772b 100644
--- a/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php
+++ b/typo3/sysext/core/Classes/Error/AbstractExceptionHandler.php
@@ -46,6 +46,7 @@ abstract class AbstractExceptionHandler implements ExceptionHandlerInterface, Si
         1396795884, // Current host header value does not match the configured trusted hosts pattern
         1616175867, // Backend login request is rate limited
         1616175847, // Frontend login request is rate limited
+        1436717275, // Request with unsupported HTTP method
     ];
 
     public const IGNORED_HMAC_EXCEPTION_CODES = [
-- 
GitLab