Commit a9e7cc14 authored by Till Brehm's avatar Till Brehm

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
parents f8db55c6 f8635ed3
......@@ -203,7 +203,7 @@ if($app->auth->is_admin()) {
'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
'errmsg'=> 'directory_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\ \.\-\_\/]{10,128}$/',
'regex' => '/^\/[a-zA-Z0-9\ \.\-\_\/]{7,128}$/',
'errmsg'=> 'directory_error_regex'),
2 => array ( 'type' => 'CUSTOM',
'class' => 'validate_ftpuser',
......
Markdown is supported
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