The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
fix: url decode filename from API (#4801)
Darion967867d48c29
diff --git a/app/user_manager.py b/app/user_manager.pyindex 53dff18b7..95ad157c3 100644--- a/app/user_manager.py+++ b/app/user_manager.py@@ -5,6 +5,7 @@ import uuidimport globimport shutilfrom aiohttp import web+from urllib import parsefrom comfy.cli_args import argsfrom folder_paths import user_directoryfrom .app_settings import AppSettings@@ -59,6 +60,10 @@ class UserManager():return Noneif file is not None:+ # Check if filename is url encoded+ if "%" in file:+ file = parse.unquote(file)+# prevent leaving /{type}/{user}path = os.path.abspath(os.path.join(user_root, file))if os.path.commonpath((user_root, path)) != user_root: