Skip to content

Commit cec0ac1

Browse files
committed
fix regex in server config jailkit fields
1 parent aee0071 commit cec0ac1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,7 +1790,7 @@
17901790
'validators' => array( 0 => array('type' => 'NOTEMPTY',
17911791
'errmsg' => 'jailkit_chroot_home_error_empty'),
17921792
1 => array ( 'type' => 'REGEX',
1793-
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/\[\]]{1,128}$/',
1793+
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/\[\]]{1,}$/',
17941794
'errmsg'=> 'jailkit_chroot_home_error_regex'),
17951795
),
17961796
'value' => '',
@@ -1804,7 +1804,7 @@
18041804
'validators' => array( 0 => array('type' => 'NOTEMPTY',
18051805
'errmsg' => 'jailkit_chroot_app_sections_error_empty'),
18061806
1 => array ( 'type' => 'REGEX',
1807-
'regex' => '/^[a-zA-Z0-9\-\_\ ]{1,128}$/',
1807+
'regex' => '/^[a-zA-Z0-9\.\-\_\ ]{1,}$/',
18081808
'errmsg'=> 'jailkit_chroot_app_sections_error_regex'),
18091809
),
18101810
'value' => '',

0 commit comments

Comments
 (0)