Fixed: FS#1007 - add a stricter check for getmail domains names.
| | |
| | | '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' => '', |
| | |
| | | $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.'; |
| | | ?> |