Commit 93e7c2d5 authored by Florian Schaal's avatar Florian Schaal

changed regex for backup_dir (allow empty backup-dir to disable backups)

parent 81b7f708
......@@ -170,7 +170,7 @@ $form["tabs"]['server'] = array(
'formtype' => 'TEXT',
'default' => '/var/backup',
'validators' => array( 0 => array ( 'type' => 'REGEX',
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{5,128}$/',
'regex' => "/(|^\\/{1,2}(?:[\\w-]+[.]?\\/?){5,128})$/";
'errmsg'=> 'backup_dir_error_regex'),
),
'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