We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents af6cf4d + 91b6ac2 commit c3fab8fCopy full SHA for c3fab8f
1 file changed
interface/web/mail/form/mail_get.tform.php
@@ -94,7 +94,7 @@
94
'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
95
'errmsg'=> 'source_server_error_isempty'),
96
1 => array ( 'type' => 'REGEX',
97
- '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})$/',
98
'errmsg'=> 'source_server_error_regex'),
99
),
100
'default' => '',
0 commit comments