Commit 5a807ad5 authored by Till Brehm's avatar Till Brehm Committed by Marius Burkard

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 a9e7cc14)

f8635ed3 10 => 7
parent 49a081d1
......@@ -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