diff --git a/Classes/Controller/FormController.php b/Classes/Controller/FormController.php index cbb9d6894..e0308b6de 100644 --- a/Classes/Controller/FormController.php +++ b/Classes/Controller/FormController.php @@ -197,6 +197,9 @@ public function initializeCreateAction(): void */ public function createAction(Mail $mail, string $hash = ''): ResponseInterface { + if ($mail->getUid() !== null && !HashUtility::isHashValid($hash, $mail)) { + return (new ForwardResponse('form'))->withoutArguments(); + } $isSavingOfMailAllowed = false; $this->signalDispatch(__CLASS__, __FUNCTION__ . 'BeforeRenderView', [$mail, $hash, $this]); /** @noinspection PhpUnhandledExceptionInspection */