mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix: prevent cloud storage download path traversal
This commit is contained in:
@@ -830,7 +830,9 @@ class U115Pan(StorageBase, metaclass=WeakSingleton):
|
||||
logger.error(f"【115】下载链接为空: {fileitem.name}")
|
||||
return None
|
||||
|
||||
local_path = (path or settings.TEMP_PATH) / fileitem.name
|
||||
local_path = self._build_download_path(fileitem, path or settings.TEMP_PATH)
|
||||
if not local_path:
|
||||
return None
|
||||
|
||||
# 获取文件大小
|
||||
file_size = detail.size
|
||||
|
||||
Reference in New Issue
Block a user