srkirkland / DataAnnotationsExtensions

Validation extensions for DataAnnotations, including optional MVC client validation implementations
https://dataannotationsextensions.apphb.com/
BSD 3-Clause "New" or "Revised" License
308 stars 86 forks source link

EmailAttribute allows email addresses with double dots in domain part #57

Closed davidduffett closed 8 years ago

davidduffett commented 11 years ago

The EmailAttribute correctly states the following email address as invalid:

someone@host..com

But incorrectly states the following as valid:

someone@host.co..uk

I believe any email address with double-periods in the host part should be invalid (it may be valid in the local part).