We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello. I'm trying to register a user with email "hel*lo@mail.com" using the Piwik's API. The API responses with following error:
'result' => 'error' 'message' => 'The email doesn't have a valid format.'
According to specs (http://tools.ietf.org/html/rfc5322#section-3.4 , http://tools.ietf.org/html/rfc2822#section-3.2.4) email address "hel*lo@mail.com" is valid.
Can you change email validator according specs?
The text was updated successfully, but these errors were encountered:
Hi @AlexGanzer thanks for the report!
Sorry, something went wrong.
There is really no point trying to validate an email address beside just checking the presence of the @ character and at least one dot after.
[^@]+@[^\.]+\..+
should be enough
You can use Zend_Validate_EmailAddress. It is written by specs. Zend_Validate_EmailAddress class already exists in Piwik code.
Merge pull request #8259 from barbushin/7298_email_validation
80b8743
Fixes #7298, use email address validator from Zend in Piwik::isValidEmail.
barbushin
No branches or pull requests
Hello.
I'm trying to register a user with email "hel*lo@mail.com" using the Piwik's API. The API responses with following error:
According to specs (http://tools.ietf.org/html/rfc5322#section-3.4 , http://tools.ietf.org/html/rfc2822#section-3.2.4) email address "hel*lo@mail.com" is valid.
Can you change email validator according specs?
The text was updated successfully, but these errors were encountered: