Skip to content

Commit 91b6ac2

Browse files
author
Florian Schaal
committed
FS#1212 - IP Address in fetchmail - allow ipv4 or hostname for pop/imap-server
1 parent af6cf4d commit 91b6ac2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/mail/form/mail_get.tform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
9595
'errmsg'=> 'source_server_error_isempty'),
9696
1 => array ( 'type' => 'REGEX',
97-
'regex' => '/^[\w\.\-]{2,64}\.[a-zA-Z\-]{2,10}$/',
97+
'regex' => '/^([\w\.\-]{2,64}\.[a-zA-Z\-]{2,10}|(?:[0-9]{1,3}\.){3}[0-9]{1,3})$/',
9898
'errmsg'=> 'source_server_error_regex'),
9999
),
100100
'default' => '',

0 commit comments

Comments
 (0)