We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 906d44b commit c414231Copy full SHA for c414231
app/code/Magento/Newsletter/Controller/Subscriber/NewAction.php
@@ -101,7 +101,7 @@ protected function validateGuestSubscription()
101
protected function validateEmailFormat($email)
102
{
103
$validator = new \Zend\Validator\EmailAddress();
104
- if ($validator->isValid($email)) {
+ if (!$validator->isValid($email)) {
105
throw new \Magento\Framework\Exception\LocalizedException(__('Please enter a valid email address.'));
106
}
107
0 commit comments