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', + ], + ], ], ];