Commit 2cbff3b5 authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#1007 - add a stricter check for getmail domains names.

parent b9c1de7f
...@@ -80,6 +80,9 @@ $form["tabs"]['mailget'] = array ( ...@@ -80,6 +80,9 @@ $form["tabs"]['mailget'] = array (
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
'errmsg'=> 'source_server_error_isempty'), 'errmsg'=> 'source_server_error_isempty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}$/',
'errmsg'=> 'source_server_error_regex'),
), ),
'default' => '', 'default' => '',
'value' => '', 'value' => '',
......
...@@ -12,4 +12,5 @@ $wb["source_server_error_isempty"] = 'Server is empty.'; ...@@ -12,4 +12,5 @@ $wb["source_server_error_isempty"] = 'Server is empty.';
$wb["source_username_error_isempty"] = 'Username is empty.'; $wb["source_username_error_isempty"] = 'Username is empty.';
$wb["source_password_error_isempty"] = 'Password is empty.'; $wb["source_password_error_isempty"] = 'Password is empty.';
$wb["destination_error_isemail"] = 'No destination selected.'; $wb["destination_error_isemail"] = 'No destination selected.';
$wb["source_server_error_regex"] = 'Pop3/Imap Server is not a valid domain name.';
?> ?>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment