Avatar

".email" email address error on sign up (General)

by Auge ⌂ @, Friday, August 25, 2017, 09:47 (86 days ago) @ Milo

Hello,

@Milo: I suggest to change from regex to filter_vars with the next main version, which is 2.5.


Why waiting for a simple modification? Just do it. ;-)

:-) Will do it on WE.

function is_valid_email($email) {
$email = filter_var($email, FILTER_SANITIZE_EMAIL);
return (!filter_var($email, FILTER_VALIDATE_EMAIL) === false) && !contains_invalid_string($email);
}


Tschö, Auge

--
further development of mlf1


Complete thread:

 RSS Feed of thread

powered by my little forum