matomo-org/matomo

E-Mail addresses with special characters are not working

Aperta

#11.796 aperta il 15 giu 2017

 (3 commenti) (0 reazioni) (0 assegnatari)PHP (2894 fork)batch import
BugHelp wanted

Metriche repository

Star
 (21.803 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor