File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,17 @@ protected function formHasPassword(Form $form): bool
7070 */
7171 protected function ignoreValidationIfConfirmation (): bool
7272 {
73- return FrontendUtility::getArguments ()['__referrer ' ]['@action ' ] === 'confirmation '
74- && FrontendUtility::getArguments ()['action ' ] === 'create ' ;
73+ return (
74+ !empty (FrontendUtility::getArguments ()['__referrer ' ])
75+ && !empty (FrontendUtility::getArguments ()['action ' ])
76+ && FrontendUtility::getArguments ()['__referrer ' ]['@action ' ] === 'confirmation '
77+ && FrontendUtility::getArguments ()['action ' ] === 'create '
78+ )
79+ || (
80+ !empty (FrontendUtility::getArguments ()['controller ' ])
81+ && !empty (FrontendUtility::getArguments ()['action ' ])
82+ && FrontendUtility::getArguments ()['controller ' ] === 'Form '
83+ && FrontendUtility::getArguments ()['action ' ] === 'optinConfirm '
84+ );
7585 }
7686}
You can’t perform that action at this time.
0 commit comments