Skip to content

Commit b1c987a

Browse files
author
florian030
committed
update regex from last commit
1 parent 770fe4f commit b1c987a

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' => "/(|^\\/{1,2}(?:[\\w-]+[.]?\\/?){5,128})$/",
193+
'regex' => "/^\/[a-zA-Z0-9\.\-\_\/]{4,128}$/",
194194
'errmsg'=> 'tmpdir_path_error_regex'),
195195
),
196196
'value' => '',

0 commit comments

Comments
 (0)