Skip to content

Commit 770fe4f

Browse files
author
florian030
committed
fixed regex for backup tmp dir
1 parent 4d6f1cc commit 770fe4f

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
@@ -190,7 +190,7 @@
190190
'validators' => array( 0 => array('type' => 'NOTEMPTY',
191191
'errmsg' => 'tmpdir_path_error_empty'),
192192
1 => array ( 'type' => 'REGEX',
193-
'regex' => '/^\/[a-zA-Z0-9\.\-\_\/]{5,128}$/',
193+
'regex' => "/(|^\\/{1,2}(?:[\\w-]+[.]?\\/?){5,128})$/",
194194
'errmsg'=> 'tmpdir_path_error_regex'),
195195
),
196196
'value' => '',

0 commit comments

Comments
 (0)