Skip to content

Commit 3e87f6b

Browse files
committed
[BUGFIX] Prevent spam warning in optinConfirm with session check enabled
Related: #1206
1 parent 48cc10d commit 3e87f6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Domain/Validator/SpamShield/SessionMethod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function spamCheck(): bool
2121
$this->mail->getForm()->getUid(),
2222
$this->settings
2323
);
24-
$referrer = $this->arguments['__referrer']['@action'];
24+
$referrer = $this->arguments['__referrer']['@action'] ?? $this->arguments['action'] ?? '';
2525
return $referrer !== 'optinConfirm' && empty($timeFromSession);
2626
}
2727
}

0 commit comments

Comments
 (0)