mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Changed e-mail validation TLD max length to 18 (#8236)
This commit is contained in:
@@ -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',
|
||||
|
Reference in New Issue
Block a user