Till Brehm
2014-02-15 91bb612618f7f5c32c6c58ac4833f575e15a16db
Fixed: FS#3336 - Underscore shouln't be possible in DNS entries!
13 files modified
40 ■■■■ changed files
interface/web/dns/form/dns_a.tform.php 2 ●●● patch | view | raw | blame | history
interface/web/dns/form/dns_aaaa.tform.php 2 ●●● patch | view | raw | blame | history
interface/web/dns/form/dns_alias.tform.php 4 ●●●● patch | view | raw | blame | history
interface/web/dns/form/dns_cname.tform.php 4 ●●●● patch | view | raw | blame | history
interface/web/dns/form/dns_hinfo.tform.php 2 ●●● patch | view | raw | blame | history
interface/web/dns/form/dns_mx.tform.php 4 ●●●● patch | view | raw | blame | history
interface/web/dns/form/dns_ns.tform.php 4 ●●●● patch | view | raw | blame | history
interface/web/dns/form/dns_ptr.tform.php 4 ●●●● patch | view | raw | blame | history
interface/web/dns/form/dns_rp.tform.php 2 ●●● patch | view | raw | blame | history
interface/web/dns/form/dns_slave.tform.php 2 ●●● patch | view | raw | blame | history
interface/web/dns/form/dns_soa.tform.php 6 ●●●● patch | view | raw | blame | history
interface/web/dns/form/dns_srv.tform.php 2 ●●● patch | view | raw | blame | history
interface/web/dns/form/dns_txt.tform.php 2 ●●● patch | view | raw | blame | history
interface/web/dns/form/dns_a.tform.php
@@ -86,7 +86,7 @@
                    'type' => 'TOLOWER')
            ),
            'validators' => array (  0 => array ( 'type' => 'REGEX',
                    'regex' => '/^[\a-zA-Z0-9\.\-\*]{0,64}$/',
                    'regex' => '/^[a-zA-Z0-9\.\-\*]{0,64}$/',
                    'errmsg'=> 'name_error_regex'),
            ),
            'default' => '',
interface/web/dns/form/dns_aaaa.tform.php
@@ -79,7 +79,7 @@
            'datatype' => 'VARCHAR',
            'formtype' => 'TEXT',
            'validators' => array (  0 => array ( 'type' => 'REGEX',
                    'regex' => '/^[\w\.\-\*]{0,64}$/',
                    'regex' => '/^[a-zA-Z0-9\.\-\*]{0,64}$/',
                    'errmsg'=> 'name_error_regex'),
            ),
            'default' => '',
interface/web/dns/form/dns_alias.tform.php
@@ -88,7 +88,7 @@
            'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
                    'errmsg'=> 'name_error_empty'),
                1 => array ( 'type' => 'REGEX',
                    'regex' => '/^[\w\.\-]{1,255}$/',
                    'regex' => '/^[a-zA-Z0-9\.\-]{1,255}$/',
                    'errmsg'=> 'name_error_regex'),
            ),
            'default' => '',
@@ -117,7 +117,7 @@
            'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
                    'errmsg'=> 'data_error_empty'),
                1 => array ( 'type' => 'REGEX',
                    'regex' => '/^[\w\.\-]{1,255}$/',
                    'regex' => '/^[a-zA-Z0-9\.\-]{1,255}$/',
                    'errmsg'=> 'data_error_regex'),
            ),
            'default' => '',
interface/web/dns/form/dns_cname.tform.php
@@ -86,7 +86,7 @@
                    'type' => 'TOLOWER')
            ),
            'validators' => array (  0 => array ( 'type' => 'REGEX',
                    'regex' => '/^[\w\.\-\*]{0,255}$/',
                    'regex' => '/^[a-zA-Z0-9\.\-\*]{0,255}$/',
                    'errmsg'=> 'name_error_regex'),
            ),
            'default' => '',
@@ -115,7 +115,7 @@
            'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
                    'errmsg'=> 'data_error_empty'),
                1 => array ( 'type' => 'REGEX',
                    'regex' => '/^[\w\.\-]{1,255}$/',
                    'regex' => '/^[a-zA-Z0-9\.\-]{1,255}$/',
                    'errmsg'=> 'data_error_regex'),
            ),
            'default' => '',
interface/web/dns/form/dns_hinfo.tform.php
@@ -88,7 +88,7 @@
            'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
                    'errmsg'=> 'name_error_empty'),
                1 => array ( 'type' => 'REGEX',
                    'regex' => '/^[\w\.\-]{1,64}$/',
                    'regex' => '/^[a-zA-Z0-9\.\-]{1,64}$/',
                    'errmsg'=> 'name_error_regex'),
            ),
            'default' => '',
interface/web/dns/form/dns_mx.tform.php
@@ -87,7 +87,7 @@
                    'type' => 'TOLOWER')
            ),
            'validators' => array (  0 => array ( 'type' => 'REGEX',
                    'regex' => '/^[\w\.\-\*]{0,255}$/',
                    'regex' => '/^[a-zA-Z0-9\.\-]{0,255}$/',
                    'errmsg'=> 'name_error_regex'),
            ),
            'default' => '',
@@ -116,7 +116,7 @@
            'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
                    'errmsg'=> 'data_error_empty'),
                1 => array ( 'type' => 'REGEX',
                    'regex' => '/^[\w\.\-]{1,255}$/',
                    'regex' => '/^[a-zA-Z0-9\.\-]{1,255}$/',
                    'errmsg'=> 'data_error_regex'),
            ),
            'default' => '',
interface/web/dns/form/dns_ns.tform.php
@@ -86,7 +86,7 @@
                    'type' => 'TOLOWER')
            ),
            'validators' => array (  0 => array ( 'type' => 'REGEX',
                    'regex' => '/^[\w\.\-]{0,255}$/',
                    'regex' => '/^[a-zA-Z0-9\.\-]{0,255}$/',
                    'errmsg'=> 'name_error_regex'),
            ),
            'default' => '',
@@ -115,7 +115,7 @@
            'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
                    'errmsg'=> 'data_error_empty'),
                1 => array ( 'type' => 'REGEX',
                    'regex' => '/^[\w\.\-]{1,255}$/',
                    'regex' => '/^[a-zA-Z0-9\.\-]{1,255}$/',
                    'errmsg'=> 'data_error_regex'),
            ),
            'default' => '',
interface/web/dns/form/dns_ptr.tform.php
@@ -86,7 +86,7 @@
                    'type' => 'TOLOWER')
            ),
            'validators' => array (  0 => array ( 'type' => 'REGEX',
                    'regex' => '/^[\w\.\-]{1,256}$/',
                    'regex' => '/^[a-zA-Z0-9\.\-]{1,256}$/',
                    'errmsg'=> 'name_error_regex'),
            ),
            'default' => '',
@@ -115,7 +115,7 @@
            'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
                    'errmsg'=> 'data_error_empty'),
                1 => array ( 'type' => 'REGEX',
                    'regex' => '/^[\w\.\-]{1,256}$/',
                    'regex' => '/^[a-zA-Z0-9\.\-]{1,256}$/',
                    'errmsg'=> 'data_error_regex'),
            ),
            'default' => '',
interface/web/dns/form/dns_rp.tform.php
@@ -86,7 +86,7 @@
                    'type' => 'TOLOWER')
            ),
            'validators' => array (  0 => array ( 'type' => 'REGEX',
                    'regex' => '/^[\w\.\-]{0,255}$/',
                    'regex' => '/^[a-zA-Z0-9\.\-]{0,255}$/',
                    'errmsg'=> 'name_error_regex'),
            ),
            'default' => '',
interface/web/dns/form/dns_slave.tform.php
@@ -96,7 +96,7 @@
                                                        'errmsg'=> 'origin_error_unique'),
                                        */
                1 => array ( 'type' => 'REGEX',
                    'regex' => '/^[\w\.\-\/]{2,255}\.[a-zA-Z0-9\-]{2,10}[\.]{0,1}$/',
                    'regex' => '/^[a-zA-Z0-9\.\-\/]{2,255}\.[a-zA-Z0-9\-]{2,10}[\.]{0,1}$/',
                    'errmsg'=> 'origin_error_regex'),
            ),
            'default' => '',
interface/web/dns/form/dns_soa.tform.php
@@ -95,7 +95,7 @@
                1 => array ( 'type' => 'UNIQUE',
                    'errmsg'=> 'origin_error_unique'),
                2 => array ( 'type' => 'REGEX',
                    'regex' => '/^[\w\.\-\/]{2,255}\.[a-zA-Z0-9\-]{2,30}[\.]{0,1}$/',
                    'regex' => '/^[a-zA-Z0-9\.\-\/]{2,255}\.[a-zA-Z0-9\-]{2,30}[\.]{0,1}$/',
                    'errmsg'=> 'origin_error_regex'),
            ),
            'default' => '',
@@ -115,7 +115,7 @@
                    'type' => 'TOLOWER')
            ),
            'validators' => array (  0 => array ( 'type' => 'REGEX',
                    'regex' => '/^[\w\.\-]{1,255}$/',
                    'regex' => '/^[a-zA-Z0-9\.\-]{1,255}$/',
                    'errmsg'=> 'ns_error_regex'),
            ),
            'default' => '',
@@ -137,7 +137,7 @@
            'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
                    'errmsg'=> 'mbox_error_empty'),
                1 => array ( 'type' => 'REGEX',
                    'regex' => '/^[[a-zA-Z0-9\.\-\_]{0,255}\.$/',
                    'regex' => '/^[a-zA-Z0-9\.\-\_]{0,255}\.$/',
                    'errmsg'=> 'mbox_error_regex'),
            ),
            'default' => '',
interface/web/dns/form/dns_srv.tform.php
@@ -86,7 +86,7 @@
                    'type' => 'TOLOWER')
            ),
            'validators' => array (  0 => array ( 'type' => 'REGEX',
                    'regex' => '/^[\w\.\-]{0,255}$/',
                    'regex' => '/^[a-zA-Z0-9\.\-]{0,255}$/',
                    'errmsg'=> 'name_error_regex'),
            ),
            'default' => '',
interface/web/dns/form/dns_txt.tform.php
@@ -86,7 +86,7 @@
                    'type' => 'TOLOWER')
            ),
            'validators' => array (  0 => array ( 'type' => 'REGEX',
                    'regex' => '/^[\w\.\-]{0,255}$/',
                    'regex' => '/^[a-zA-Z0-9\.\-]{0,255}$/',
                    'errmsg'=> 'name_error_regex'),
            ),
            'default' => '',