sentora-core
sentora-core copied to clipboard
Update controller.ext.php
Allow email addresses that include a plus sign for tagging/local filtering.
I have the feeling that it would be more efficient and reliable to use:
static function IsValidEmail($email) { return filter_var($email, FILTER_VALIDATE_EMAIL) !== false; }
or even to remove completely the function IsValidEmail($email) and to call each time directly filter_var() instead.
Can someone else more accustomed to filter_var() confirm or deny?
Agreed, It should be:
static function IsValidEmail($email) {
return !!filter_var($email, FILTER_VALIDATE_EMAIL)
}
Or keep as Is, there are bunch of the issues with email verification. And caveats in each solution but at least this is de facto one.
@Dukecitysolutions - was this ever resolved?