https://bugzilla.wikimedia.org/show_bug.cgi?id=22449

Aryeh Gregor <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
                   |                            |om

--- Comment #8 from Aryeh Gregor <[email protected]> 2010-10-28 
23:17:58 UTC ---
HTML5 has a good real-world definition:

http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#valid-e-mail-address

It works out to something like

"^$username_ch...@$domain_char+(\.$domain_char+)+$"

where

$username_char = [-a-zA-Z0-9!#$%&\'*+/=?^_`{|}~.];
$domain_char = [-a-zA-Z0-9]

I did some research on how overly restrictive this definition was in practice,
using an older and more restrictive definition:

http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-August/022220.html

It looks like it will be fine, at least for English users.  Almost none would
be affected if we did some sanitization (e.g., to fix up stuff like "Foo"
<[email protected]>).  I've been meaning to do some more testing on the databases
to see if other languages might be affected more, but never got around to it. 
If obviously bogus addresses are causing problems, then we may as well go ahead
with it.  It's a pretty trivial change to get MediaWiki to reject these on the
server side.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to