Commit 529ae7a0 authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#947 - unable to configure very long domains

parent af6954f2
...@@ -82,7 +82,7 @@ $form["tabs"]['dns_soa'] = array ( ...@@ -82,7 +82,7 @@ $form["tabs"]['dns_soa'] = array (
1 => array ( 'type' => 'UNIQUE', 1 => array ( 'type' => 'UNIQUE',
'errmsg'=> 'origin_error_unique'), 'errmsg'=> 'origin_error_unique'),
2 => array ( 'type' => 'REGEX', 2 => array ( 'type' => 'REGEX',
'regex' => '/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}[\.]{0,1}$/', 'regex' => '/^[\w\.\-]{2,255}\.[a-zA-Z]{2,10}[\.]{0,1}$/',
'errmsg'=> 'origin_error_regex'), 'errmsg'=> 'origin_error_regex'),
), ),
'default' => '', 'default' => '',
......
...@@ -77,7 +77,7 @@ $form["tabs"]['domain'] = array ( ...@@ -77,7 +77,7 @@ $form["tabs"]['domain'] = array (
1 => array ( 'type' => 'UNIQUE', 1 => array ( 'type' => 'UNIQUE',
'errmsg'=> 'domain_error_unique'), 'errmsg'=> 'domain_error_unique'),
2 => array ( 'type' => 'REGEX', 2 => array ( 'type' => 'REGEX',
'regex' => '/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}$/', 'regex' => '/^[\w\.\-]{2,255}\.[a-zA-Z]{2,10}$/',
'errmsg'=> 'domain_error_regex'), 'errmsg'=> 'domain_error_regex'),
), ),
'default' => '', 'default' => '',
......
...@@ -74,7 +74,7 @@ $form["tabs"]['catchall'] = array ( ...@@ -74,7 +74,7 @@ $form["tabs"]['catchall'] = array (
1 => array ( 'type' => 'UNIQUE', 1 => array ( 'type' => 'UNIQUE',
'errmsg'=> 'domain_error_unique'), 'errmsg'=> 'domain_error_unique'),
2 => array ( 'type' => 'REGEX', 2 => array ( 'type' => 'REGEX',
'regex' => '/^\@[\w\.\-]{2,64}\.[a-zA-Z]{2,10}$/', 'regex' => '/^\@[\w\.\-]{2,255}\.[a-zA-Z]{2,10}$/',
'errmsg'=> 'domain_error_regex'), 'errmsg'=> 'domain_error_regex'),
), ),
'default' => '', 'default' => '',
......
...@@ -77,7 +77,7 @@ $form["tabs"]['domain'] = array ( ...@@ -77,7 +77,7 @@ $form["tabs"]['domain'] = array (
1 => array ( 'type' => 'UNIQUE', 1 => array ( 'type' => 'UNIQUE',
'errmsg'=> 'domain_error_unique'), 'errmsg'=> 'domain_error_unique'),
2 => array ( 'type' => 'REGEX', 2 => array ( 'type' => 'REGEX',
'regex' => '/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}$/', 'regex' => '/^[\w\.\-]{2,255}\.[a-zA-Z]{2,10}$/',
'errmsg'=> 'domain_error_regex'), 'errmsg'=> 'domain_error_regex'),
), ),
'default' => '', 'default' => '',
......
...@@ -97,7 +97,7 @@ $form["tabs"]['domain'] = array ( ...@@ -97,7 +97,7 @@ $form["tabs"]['domain'] = array (
1 => array ( 'type' => 'UNIQUE', 1 => array ( 'type' => 'UNIQUE',
'errmsg'=> 'domain_error_unique'), 'errmsg'=> 'domain_error_unique'),
2 => array ( 'type' => 'REGEX', 2 => array ( 'type' => 'REGEX',
'regex' => '/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}$/', 'regex' => '/^[\w\.\-]{2,255}\.[a-zA-Z]{2,10}$/',
'errmsg'=> 'domain_error_regex'), 'errmsg'=> 'domain_error_regex'),
), ),
'default' => '', 'default' => '',
......
...@@ -77,7 +77,7 @@ $form["tabs"]['domain'] = array ( ...@@ -77,7 +77,7 @@ $form["tabs"]['domain'] = array (
1 => array ( 'type' => 'UNIQUE', 1 => array ( 'type' => 'UNIQUE',
'errmsg'=> 'domain_error_unique'), 'errmsg'=> 'domain_error_unique'),
2 => array ( 'type' => 'REGEX', 2 => array ( 'type' => 'REGEX',
'regex' => '/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}$/', 'regex' => '/^[\w\.\-]{2,255}\.[a-zA-Z]{2,10}$/',
'errmsg'=> 'domain_error_regex'), 'errmsg'=> 'domain_error_regex'),
), ),
'default' => '', 'default' => '',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment