mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-21 19:12:04 +00:00
Email address with Punycode top-level domain is not accepted (#32793).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@19660 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
dd71338ff1
commit
87b56c6521
@ -20,7 +20,7 @@
|
||||
class EmailAddress < ActiveRecord::Base
|
||||
include Redmine::SafeAttributes
|
||||
|
||||
EMAIL_REGEXP = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/i
|
||||
EMAIL_REGEXP = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+(?:(?:xn--[-a-z0-9]+)|(?:[a-z]{2,})))\z/i
|
||||
|
||||
belongs_to :user
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user