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 dd8f43c commit 7c463b8Copy full SHA for 7c463b8
app/code/Magento/Newsletter/Controller/Subscriber/NewAction.php
@@ -100,7 +100,8 @@ protected function validateGuestSubscription()
100
*/
101
protected function validateEmailFormat($email)
102
{
103
- if (!\Zend_Validate::is($email, 'EmailAddress')) {
+ $validator = new \Zend\Validator\EmailAddress();
104
+ if ($validator->isValid($email)) {
105
throw new \Magento\Framework\Exception\LocalizedException(__('Please enter a valid email address.'));
106
}
107
0 commit comments