From 7423e2ec0c98c3955fa79ab88ade686195142619 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 5 Sep 2025 11:01:48 +0800 Subject: [PATCH] bugfix --- llmage/llmclient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llmage/llmclient.py b/llmage/llmclient.py index 6dc5401..c67a850 100644 --- a/llmage/llmclient.py +++ b/llmage/llmclient.py @@ -108,13 +108,13 @@ def b64media2url(request, mediafile): debug(f'{env.keys()=},{fpath=},{fname=}') base64_to_file(mediafile, fpath) path = fs.webpath(fpath) - return entire_url('/idfile?path=') + env.quota(path) + return entire_url('/idfile?path=') + env.quote(path) except Exception as e: exception(f'{e}\n{format_exc()}') return ' ' if mediafile.startswith('http://') or mediafile.startswith('https://'): return mediafile - url = entire_url('/idfile?path=') + env.quota(mediafile) + url = entire_url('/idfile?path=') + env.quote(mediafile) return url async def inference(request, *args, **kw):