diff options
author | alecpl <alec@alec.pl> | 2011-05-04 18:53:11 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-05-04 18:53:11 +0000 |
commit | ba9c7b40f0dfcadf1d5711246e7b332ff7a60787 (patch) | |
tree | 10d8bc0a125fe8bc29d33592a480e245c5627e21 /program/js/common.js | |
parent | 4a7ed027e4d9b605060cecc9bd97bc3dd2c1889b (diff) |
- Apply fixes from trunk (up to r4728)
Diffstat (limited to 'program/js/common.js')
-rw-r--r-- | program/js/common.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/js/common.js b/program/js/common.js index 5c9102771..bb169a8c7 100644 --- a/program/js/common.js +++ b/program/js/common.js @@ -493,8 +493,8 @@ function rcube_check_email(input, inline) // So, e-mail address should be validated also on server side after idn_to_ascii() use //domain_literal = '\\x5b('+dtext+'|'+quoted_pair+')*\\x5d', //sub_domain = '('+atom+'|'+domain_literal+')', - // allow punycode in last domain part for ICANN test domains - domain = '([^@\\x2e]+\\x2e)+([a-z]{2,}|xn--[a-z0-9]{2,})', + // allow punycode/unicode top-level domain + domain = '([^@\\x2e]+\\x2e)+([^\\x00-\\x40\\x5b-\\x60\\x7b-\\x7f]{2,}|xn--[a-z0-9]{2,})', // ICANN e-mail test (http://idn.icann.org/E-mail_test) icann_domains = [ '\\u0645\\u062b\\u0627\\u0644\\x2e\\u0625\\u062e\\u062a\\u0628\\u0627\\u0631', |