🔀 合并 FileCodeBox 2.5.6 官方修复

在保留现有 2026 主题、管理后台与存储定制的基础上,同步官方 2.5.5/2.5.6 的安全修复与生产日志优化。

- 合入分片上传文件名清理与路径穿越防护
- 合入生产日志降噪、访问日志开关和回收站处理修复
- 保留现有前端主题、WebDAV 和管理后台定制
This commit is contained in:
orion committed 2026-09-11 07:37:37 +08:00
commit 67a4fd894c
22 files changed
+381 -54

No files matched your search

+1
View File
@@ -43,6 +43,7 @@ async def get_chunk_file_path_name(
) -> Tuple[str, str, str, str, str]:
today = await get_now()
storage_path = settings.storage_path.strip("/")
file_name = await sanitize_filename(unquote(file_name or ""))
base_path = f"share/data/{today.strftime('%Y/%m/%d')}/{upload_id}"
path = f"{storage_path}/{base_path}" if storage_path else base_path
prefix, suffix = os.path.splitext(file_name)