Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update controller.ext.php #305

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

evandone
Copy link

@evandone evandone commented Jul 7, 2017

Allow email addresses that include a plus sign for tagging/local filtering.

@5050
Copy link
Contributor

5050 commented Jul 7, 2017

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?

@Rakhmanov
Copy link

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.

@TGates71
Copy link
Member

TGates71 commented Feb 1, 2024

@Dukecitysolutions - was this ever resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants