Validate that model subdirectory cannot contain relative paths.

This commit is contained in:
Robin Huang
2024-08-07 12:45:07 -07:00
parent 9632dded9e
commit 59933489bf
4 changed files with 81 additions and 16 deletions

View File

@@ -561,7 +561,7 @@ class PromptServer():
return web.Response(status=200)
@routes.post("/download")
@routes.post("/models/download")
async def download_handler(request):
async def report_progress(filename: str, status: DownloadStatus):
await self.send_json("download_progress", {