Commit 770fe4fe authored by Florian Schaal's avatar Florian Schaal

fixed regex for backup tmp dir

parent 4d6f1cce
...@@ -190,7 +190,7 @@ $form["tabs"]['server'] = array( ...@@ -190,7 +190,7 @@ $form["tabs"]['server'] = array(
'validators' => array( 0 => array('type' => 'NOTEMPTY', 'validators' => array( 0 => array('type' => 'NOTEMPTY',
'errmsg' => 'tmpdir_path_error_empty'), 'errmsg' => 'tmpdir_path_error_empty'),
1 => array ( 'type' => 'REGEX', 1 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{5,128}$/', 'regex' => "/(|^\\/{1,2}(?:[\\w-]+[.]?\\/?){5,128})$/",
'errmsg'=> 'tmpdir_path_error_regex'), 'errmsg'=> 'tmpdir_path_error_regex'),
), ),
'value' => '', 'value' => '',
......
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