Skip to content

Commit 5a807ad

Browse files
Till BrehmMarius Burkard
authored andcommitted
Merge branch 'ftp_regex' into 'master'
improved ftp regex for shorter directory for example: **/www/0/1** this directory throws **directory_error_regex**, that's why **7** See merge request !545 (cherry picked from commit a9e7cc1) f8635ed 10 => 7
1 parent 49a081d commit 5a807ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/sites/form/ftp_user.tform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
204204
'errmsg'=> 'directory_error_empty'),
205205
1 => array ( 'type' => 'REGEX',
206-
'regex' => '/^\/[a-zA-Z0-9\ \.\-\_\/]{10,128}$/',
206+
'regex' => '/^\/[a-zA-Z0-9\ \.\-\_\/]{7,128}$/',
207207
'errmsg'=> 'directory_error_regex'),
208208
2 => array ( 'type' => 'CUSTOM',
209209
'class' => 'validate_ftpuser',

0 commit comments

Comments
 (0)