Skip to content

Commit af4f8fa

Browse files
committed
URL-decode path from API
1 parent d043997 commit af4f8fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/user_manager.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import uuid
55
import glob
66
import shutil
7+
import urllib
78
from aiohttp import web
89
from comfy.cli_args import args
910
from folder_paths import user_directory
@@ -139,6 +140,9 @@ def get_user_data_path(request, check_exists = False, param = "file"):
139140
if not file:
140141
return web.Response(status=400)
141142

143+
# Decode URL-encoded file path
144+
file = urllib.parse.unquote(file);
145+
142146
path = self.get_request_user_filepath(request, file)
143147
if not path:
144148
return web.Response(status=403)

0 commit comments

Comments
 (0)