Improve file access rights in webgui

This commit is contained in:
2026-09-24 09:17:41 +02:00
parent 5dcda3fe81
commit 53ea5af9e7
6 changed files with 7 additions and 0 deletions
+1
View File
@@ -153,6 +153,7 @@ switch ($submit = form_get_action()) {
$id = db_exec_insert('document', $p);
$file_techname = sprintf('%s/%s-%06d.%s', $g_doc_basepath, $prefix, $id, $file_ext);
move_uploaded_file($file_tmp, $file_techname);
chmod($file_techname, 0640);
$action = ACT_VIEW;
break;