matomo-org/matomo

E-Mail addresses with special characters are not working

Open

#11,796 opened on Jun 15, 2017

View on GitHub
 (3 comments) (0 reactions) (0 assignees)PHP (21,513 stars) (2,847 forks)batch import
BugHelp wanted

Description

If one tries to add a new user with the email address john's.email@example.com piwik returns The email doesn't have a valid format. even though the address is perfectly valid. A var_dump($emailAddress) in this line shows that the all special characters get converted to HTML entities.

  • john's.email@example.com => john's.email@example.com
  • "very.unusual.@.unusual.com"@example.com => "very.unusual.@.unusual.com"@example.com
  • !#$%&'*+-/=?^_{|}~@example.com => !#$%&'*+-/=?^_{|}~@example.com

Contributor guide

E-Mail addresses with special characters are not working · matomo-org/matomo#11796 | Good First Issue