fix: Changed e-mail validation TLD max length to 18 (#8236)

This commit is contained in:
Robbert
2018-02-10 14:25:50 +01:00
committed by Neil Lathwood
parent 5880f06780
commit 363c24a117

View File

@@ -288,7 +288,7 @@ $general_conf = array(
array('name' => 'alert.default_mail',
'descr' => 'Default contact',
'type' => 'text',
'pattern' => '[a-zA-Z0-9_\-\.\+]+@[a-zA-Z0-9_\-\.]+\.[a-zA-Z]{2,5}',
'pattern' => '[a-zA-Z0-9_\-\.\+]+@[a-zA-Z0-9_\-\.]+\.[a-zA-Z]{2,18}',
),
array('name' => 'alert.tolerance_window',
'descr' => 'Tolerance window for cron',
@@ -318,7 +318,7 @@ $mail_conf = array(
array('name' => 'email_from',
'descr' => 'From email address',
'type' => 'text',
'pattern' => '[a-zA-Z0-9_\-\.\+]+@[a-zA-Z0-9_\-\.]+\.[a-zA-Z]{2,5}',
'pattern' => '[a-zA-Z0-9_\-\.\+]+@[a-zA-Z0-9_\-\.]+\.[a-zA-Z]{2,18}',
),
array('name' => 'email_html',
'descr' => 'Use HTML emails',