mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-11 17:06:36 +08:00
URL-decode path from API
This commit is contained in:
parent
d043997d30
commit
af4f8fa2ac
@ -4,6 +4,7 @@ import re
|
||||
import uuid
|
||||
import glob
|
||||
import shutil
|
||||
import urllib
|
||||
from aiohttp import web
|
||||
from comfy.cli_args import args
|
||||
from folder_paths import user_directory
|
||||
@ -139,6 +140,9 @@ class UserManager():
|
||||
if not file:
|
||||
return web.Response(status=400)
|
||||
|
||||
# Decode URL-encoded file path
|
||||
file = urllib.parse.unquote(file);
|
||||
|
||||
path = self.get_request_user_filepath(request, file)
|
||||
if not path:
|
||||
return web.Response(status=403)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user