Skip to content

Commit 9b03907

Browse files
committed
Merge branch 'release/8.3.1'
2 parents 29d5e81 + e1aa101 commit 9b03907

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

Classes/Domain/Validator/CaptchaValidator.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,16 @@ public function isValid($mail)
5353
/** @var Answer $answer */
5454
if ($answer->getField()->getType() === 'captcha') {
5555
$this->setCaptchaArgument(true);
56-
if (!$this->validCodePreflight($answer->getValue(), $answer->getField())) {
57-
$this->setErrorAndMessage($answer->getField(), 'captcha');
56+
/* If the answer has a UID it has already been validated an persisted.
57+
* There's no reason to validate it twice. Also, there's no possibility, since the value to check
58+
* against got removed from the user's session on the first validation.
59+
* Resolves: https://github.com/einpraegsam/powermail/issues/376
60+
* Resolves: https://projekte.in2code.de/issues/44174
61+
*/
62+
if ($answer->getUid() === null) {
63+
if (!$this->validCodePreflight($answer->getValue(), $answer->getField())) {
64+
$this->setErrorAndMessage($answer->getField(), 'captcha');
65+
}
5866
}
5967
}
6068
}

Documentation/Changelog/Readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
| Version | Release Date | Description |
66
|------------ |--------------|-----------------------------------------------------------------------------------------------------------------------|
7+
| 8.3.1 | 2021-03-08 | Bugfix: Don't validate captcha fields of already persisted mails (in double optin) |
78
| 8.3.0 | 2021-02-16 | Feature: Add autodeployment functionality to TER |
89
| | | Bugfix: Foreign-Validator compatibility to core methods |
910
| | | Bugfix: Reanimate sending emails to backend users |

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
and easy to use mailform extension with a lots of features
1010
(spam prevention, marketing information, optin, ajax submit, diagram analysis, etc...)',
1111
'category' => 'plugin',
12-
'version' => '8.3.0',
12+
'version' => '8.3.1',
1313
'state' => 'stable',
1414
'author' => 'Powermail Development Team',
1515
'author_email' => 'alexander.kellner@in2code.de',

0 commit comments

Comments
 (0)