Skip to content

Commit 7dd9234

Browse files
author
Till Brehm
committed
Fixed regex in prefix validation under System > interface config that prevented numbers in prefixes.
1 parent 534e452 commit 7dd9234

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

interface/web/admin/form/system_config.tform.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
'datatype' => 'VARCHAR',
6363
'formtype' => 'TEXT',
6464
'validators' => array ( 0 => array ( 'type' => 'REGEX',
65-
'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/',
65+
'regex' => '/^[a-zA-Z0-9\-\_\[\]]{0,50}$/',
6666
'errmsg'=> 'dbname_prefix_error_regex'),
6767
),
6868
'default' => '',
@@ -74,7 +74,7 @@
7474
'datatype' => 'VARCHAR',
7575
'formtype' => 'TEXT',
7676
'validators' => array ( 0 => array ( 'type' => 'REGEX',
77-
'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/',
77+
'regex' => '/^[a-zA-Z0-9\-\_\[\]]{0,50}$/',
7878
'errmsg'=> 'dbuser_prefix_error_regex'),
7979
),
8080
'default' => '',
@@ -86,7 +86,7 @@
8686
'datatype' => 'VARCHAR',
8787
'formtype' => 'TEXT',
8888
'validators' => array ( 0 => array ( 'type' => 'REGEX',
89-
'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/',
89+
'regex' => '/^[a-zA-Z0-9\-\_\[\]]{0,50}$/',
9090
'errmsg'=> 'ftpuser_prefix_error_regex'),
9191
),
9292
'default' => '',
@@ -98,7 +98,7 @@
9898
'datatype' => 'VARCHAR',
9999
'formtype' => 'TEXT',
100100
'validators' => array ( 0 => array ( 'type' => 'REGEX',
101-
'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/',
101+
'regex' => '/^[a-zA-Z0-9\-\_\[\]]{0,50}$/',
102102
'errmsg'=> 'shelluser_prefix_error_regex'),
103103
),
104104
'default' => '',
@@ -110,7 +110,7 @@
110110
'datatype' => 'VARCHAR',
111111
'formtype' => 'TEXT',
112112
'validators' => array ( 0 => array ( 'type' => 'REGEX',
113-
'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/',
113+
'regex' => '/^[a-zA-Z0-9\-\_\[\]]{0,50}$/',
114114
'errmsg'=> 'webdavuser_prefix_error_regex'),
115115
),
116116
'default' => '',

0 commit comments

Comments
 (0)