Improve file access rights in webgui
This commit is contained in:
@@ -202,6 +202,7 @@ switch ($submit = form_get_action()) {
|
||||
$docid = $pdo->lastInsertId();
|
||||
$file_techname = file_get_docname($docid, 'picture', $file_ext);
|
||||
move_uploaded_file($file_tmp, $g_doc_basepath . '/' . $file_techname);
|
||||
chmod($g_doc_basepath . '/' . $file_techname, 0640);
|
||||
} else {
|
||||
// A document record definitely exists here, now just
|
||||
// connect it to the selected equipment
|
||||
|
||||
Reference in New Issue
Block a user