@Findus23 opened this Issue on June 15th 2017 Member

If one tries to add a new user with the email address john's.email<a class='mention' href='https://github.com/example'>@example</a>.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<a class='mention' href='https://github.com/example'>@example</a>.com => john&<a href='/039'>#039</a>;s.email<a class='mention' href='https://github.com/example'>@example</a>.com
  • "very.unusual.@.unusual.com"<a class='mention' href='https://github.com/example'>@example</a>.com => &quot;very.unusual.@.unusual.com&quot;<a class='mention' href='https://github.com/example'>@example</a>.com
  • !#$%&'*+-/=?^_{|}~<a class='mention' href='https://github.com/example'>@example</a>.com => !#$%&amp;&<a href='/039'>#039</a>;*+-/=?^_{|}~<a class='mention' href='https://github.com/example'>@example</a>.com
Powered by GitHub Issue Mirror