balexand/email_validator — pull request #8 by croaky (2013-03-26 18:02:30+00:00)
Title: Regular expression fix

In Ruby, `^` and `$` match the line beginning and line end. So, Rails will convert an email
coming in via HTTP like this:

user@example.com%0A

To:

user@example.com\n

and unintentionally passes validation because the regular expression
matched the email: up to the line end, the rest does not matter.

http://guides.rubyonrails.org/security.html#regular-expressions