Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Classes/Middleware/PersistenceMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ private function saveStuff(ServerRequestInterface $request): ResponseInterface
throw new RuntimeException('Unknown data operations: ' . implode(', ', array_keys($input)) . ' only data and cmdArray are allowed', 8110225095);
}

// Required by DefaultSanitizerBuilder when processing RTE fields via DataHandler;
// this middleware short-circuits before the FE RequestHandler which normally sets this global.
$GLOBALS['TYPO3_REQUEST'] = $request;
$errorLog = $this->dataHandlerService->run($data, []);

foreach ($cmdArray as $cmd) {
Expand Down