Skip to content
Snippets Groups Projects
Commit 2cbff3b5 authored by tbrehm's avatar tbrehm
Browse files

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

parent b9c1de7f
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,9 @@ $form["tabs"]['mailget'] = array (
'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
'errmsg'=> 'source_server_error_isempty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}$/',
'errmsg'=> 'source_server_error_regex'),
),
'default' => '',
'value' => '',
......
......@@ -12,4 +12,5 @@ $wb["source_server_error_isempty"] = 'Server is empty.';
$wb["source_username_error_isempty"] = 'Username is empty.';
$wb["source_password_error_isempty"] = 'Password is empty.';
$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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment