From 4c43c168ca61743867f37ccedfcbbf67e0ec9737 Mon Sep 17 00:00:00 2001 From: Hannes Bochmann Date: Mon, 22 Apr 2024 17:15:53 +0200 Subject: [PATCH] Bufix fix debug output --- .../Middleware/GlobalInputSanitizerMiddleware.php | 1 - Configuration/RequestMiddlewares.php | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Classes/Middleware/GlobalInputSanitizerMiddleware.php b/Classes/Middleware/GlobalInputSanitizerMiddleware.php index 68383cb..7e0cd82 100644 --- a/Classes/Middleware/GlobalInputSanitizerMiddleware.php +++ b/Classes/Middleware/GlobalInputSanitizerMiddleware.php @@ -83,7 +83,6 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface // sanitize post and get Factory::getSanitizer()->sanitizeInput(...$globalInputs); - Factory::getDebugger()->processDebugStack(); // sanitize request return $handler->handle($this->getCleanedServerRequest($request)); diff --git a/Configuration/RequestMiddlewares.php b/Configuration/RequestMiddlewares.php index e02d610..7542f57 100644 --- a/Configuration/RequestMiddlewares.php +++ b/Configuration/RequestMiddlewares.php @@ -36,6 +36,12 @@ 'typo3/cms-frontend/eid', ], ], + 'dmk/mksanitizedparameters/process-debug-stack' => [ + 'target' => DMK\MkSanitizedParameters\Middleware\ProcessDebugStackMiddleware::class, + 'after' => [ + 'typo3/cms-frontend/page-argument-validator', + ], + ], ], 'backend' => [ 'dmk/mksanitizedparameters/global-input-sanitizer' => [ @@ -47,5 +53,13 @@ 'typo3/cms-backend/locked-backend', ], ], + 'dmk/mksanitizedparameters/process-debug-stack' => [ + 'target' => DMK\MkSanitizedParameters\Middleware\ProcessDebugStackMiddleware::class, + 'after' => [ + // This maybe an internal middleware that should be not referenced but there is no public middleware + // that can be referenced and making the debug output available. + 'typo3/cms-core/response-propagation', + ], + ], ], ];