normalizing emails in lowercase

This commit is contained in:
Amine Ben hammou
2018-01-23 13:46:10 +00:00
parent 3c2ef4b8ee
commit 4abd034880
2 changed files with 2 additions and 2 deletions

View File

@@ -159,7 +159,7 @@ class Import {
if(!is_email($email)) {
$invalid_records[] = $index;
}
return $email;
return strtolower($email);
}, array_keys($data), $data
);
}

View File

@@ -23,7 +23,7 @@ class ImportTest extends \MailPoetTest {
array(
'Adam',
'Smith',
'adam@smith.com',
'Adam@smith.com',
'France'
),
array(