Follow up r75627. Implements r75670 in PHP to validate emails.
authorAntoine Musso <hashar@users.mediawiki.org>
Fri, 29 Oct 2010 22:03:17 +0000 (22:03 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Fri, 29 Oct 2010 22:03:17 +0000 (22:03 +0000)
commit011d4043a31f2142de4e5ddd31402eca3b55caa8
tree975c0f5b0ac511b7c372ad66e5a30f38dfe07d56
parentb04f25ae6b03dd15a6c9abbf17ff40589b324fd4
Follow up r75627. Implements r75670 in PHP to validate emails.

* Server side validation of email according to an HTML5 specifications provided by Simetrical :
http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#e-mail-state
* This is NOT a fix of bug 959 (which wants RFC 2822 validation)
* Basic unit tests
includes/User.php
maintenance/tests/phpunit/includes/UserIsValidEmailAddrTest.php [new file with mode: 0644]