From 91b6ac2752c03b641702aecd5968da299e43b70b Mon Sep 17 00:00:00 2001
From: Florian Schaal <florian@schaal-24.de>
Date: Tue, 2 Jun 2015 21:12:04 +0200
Subject: [PATCH] FS#1212 - IP Address in fetchmail - allow ipv4 or hostname
 for pop/imap-server

---
 interface/web/mail/form/mail_get.tform.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/interface/web/mail/form/mail_get.tform.php b/interface/web/mail/form/mail_get.tform.php
index c04973aa40..4521e40028 100644
--- a/interface/web/mail/form/mail_get.tform.php
+++ b/interface/web/mail/form/mail_get.tform.php
@@ -94,7 +94,7 @@ $form["tabs"]['mailget'] = array (
 			'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
 					'errmsg'=> 'source_server_error_isempty'),
 				1 => array ( 'type' => 'REGEX',
-					'regex' => '/^[\w\.\-]{2,64}\.[a-zA-Z\-]{2,10}$/',
+					'regex' => '/^([\w\.\-]{2,64}\.[a-zA-Z\-]{2,10}|(?:[0-9]{1,3}\.){3}[0-9]{1,3})$/',
 					'errmsg'=> 'source_server_error_regex'),
 			),
 			'default' => '',
-- 
GitLab