Skip to content

Commit

Permalink
Bufix fix debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbochmann committed Apr 22, 2024
1 parent d423736 commit 4c43c16
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 0 additions & 1 deletion Classes/Middleware/GlobalInputSanitizerMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
14 changes: 14 additions & 0 deletions Configuration/RequestMiddlewares.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand All @@ -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',
],
],
],
];

0 comments on commit 4c43c16

Please sign in to comment.