Weakening email validation so redirects on tld will work again, users should know what they are doing
This commit is contained in:
parent
6b9605db73
commit
4d8143eb0d
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ if(isset($_POST['savemode'])){
|
|||
|
||||
// basic email validation isn't working 100% correct though
|
||||
foreach(array_merge($inputSources, $inputDestinations) as $email){
|
||||
if(!filter_var($email, FILTER_VALIDATE_EMAIL)){
|
||||
if(strpos($email, '@') === false){
|
||||
$emailErrors[$email] = "Address \"{$email}\" isn't a valid email address.";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue