Skip to content

Commit 93e7c2d

Browse files
author
Florian Schaal
committed
changed regex for backup_dir (allow empty backup-dir to disable backups)
1 parent 81b7f70 commit 93e7c2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/admin/form/server_config.tform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
'formtype' => 'TEXT',
171171
'default' => '/var/backup',
172172
'validators' => array( 0 => array ( 'type' => 'REGEX',
173-
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{5,128}$/',
173+
'regex' => "/(|^\\/{1,2}(?:[\\w-]+[.]?\\/?){5,128})$/";
174174
'errmsg'=> 'backup_dir_error_regex'),
175175
),
176176
'value' => '',

0 commit comments

Comments
 (0)