Skip to content

Commit 1d4c666

Browse files
committed
Fix: #6008.5 failed and add composer.lock
1 parent 7c463b8 commit 1d4c666

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

app/code/Magento/Contact/Controller/Index/Post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function execute()
4343
if (!\Zend_Validate::is(trim($post['comment']), 'NotEmpty')) {
4444
$error = true;
4545
}
46-
$validator = new \Zend\Validator\EmailAddress();
46+
$validator = new \Zend\Validator\EmailAddress();
4747
if (!$validator->isValid(trim($post['email']))) {
4848
$error = true;
4949
}

app/code/Magento/Customer/Controller/Account/ForgotPasswordPost.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function execute()
6161
$email = (string)$this->getRequest()->getPost('email');
6262
if ($email) {
6363
$validator = new \Zend\Validator\EmailAddress();
64-
if (!$validator->isValid($email)) {
64+
if (!$validator->isValid($email)) {
6565
$this->session->setForgottenEmail($email);
6666
$this->messageManager->addErrorMessage(__('Please correct the email address.'));
6767
return $resultRedirect->setPath('*/*/forgotpassword');

app/code/Magento/CustomerImportExport/Model/Import/AbstractCustomer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ protected function _checkUniqueKey(array $rowData, $rowNumber)
232232
} else {
233233
$email = strtolower($rowData[static::COLUMN_EMAIL]);
234234
$website = $rowData[static::COLUMN_WEBSITE];
235-
$validator = new \Zend\Validator\EmailAddress();
236-
if (!$validator->isValid($email)) {
235+
$validator = new \Zend\Validator\EmailAddress();
236+
if (!$validator->isValid($email)) {
237237
$this->addRowError(static::ERROR_INVALID_EMAIL, $rowNumber, static::COLUMN_EMAIL);
238238
} elseif (!isset($this->_websiteCodeToId[$website])) {
239239
$this->addRowError(static::ERROR_INVALID_WEBSITE, $rowNumber, static::COLUMN_WEBSITE);

app/code/Magento/Newsletter/Controller/Subscriber/NewAction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ protected function validateGuestSubscription()
100100
*/
101101
protected function validateEmailFormat($email)
102102
{
103-
$validator = new \Zend\Validator\EmailAddress();
104-
if ($validator->isValid($email)) {
103+
$validator = new \Zend\Validator\EmailAddress();
104+
if ($validator->isValid($email)) {
105105
throw new \Magento\Framework\Exception\LocalizedException(__('Please enter a valid email address.'));
106106
}
107107
}

app/code/Magento/Quote/Model/Quote/Address/Validator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function isValid($value)
3939
{
4040
$messages = [];
4141
$email = $value->getEmail();
42-
$validator = new \Zend\Validator\EmailAddress();
42+
$validator = new \Zend\Validator\EmailAddress();
4343
if (!empty($email) && !$validator->isValid($email)) {
4444
$messages['invalid_email_format'] = 'Invalid email format';
4545
}

app/code/Magento/SendFriend/Model/SendFriend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public function validate()
235235
}
236236

237237
$email = $this->getSender()->getEmail();
238-
$validator = new \Zend\Validator\EmailAddress();
238+
$validator = new \Zend\Validator\EmailAddress();
239239
if (empty($email) or !$validator->isValid($email)) {
240240
$errors[] = __('Invalid Sender Email');
241241
}

app/code/Magento/Wishlist/Controller/Index/Send.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function execute()
153153
} else {
154154
foreach ($emails as $index => $email) {
155155
$email = trim($email);
156-
$validator = new \Zend\Validator\EmailAddress();
156+
$validator = new \Zend\Validator\EmailAddress();
157157
if (!$validator->isValid($email)) {
158158
$error = __('Please enter a valid email address.');
159159
break;

composer.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)