Agent Zero AI framework
fix code break in tables, remove folder restriction in image_get
frdelfa12cd50e292
diff --git a/python/api/image_get.py b/python/api/image_get.pyindex a009d7f32..f9600a148 100644--- a/python/api/image_get.py+++ b/python/api/image_get.py@@ -23,20 +23,21 @@ class ImageGet(ApiHandler):if not path:raise ValueError("No path provided")+ # no real need to check, we have the extension filter in place# check if path is within base directory- if runtime.is_development():- in_base = files.is_in_base_dir(files.fix_dev_path(path))- else:- in_base = files.is_in_base_dir(path)- if not in_base and not files.is_in_dir(path, "/root"):- raise ValueError("Path is outside of allowed directory")+ # if runtime.is_development():+ # in_base = files.is_in_base_dir(files.fix_dev_path(path))+ # else:+ # in_base = files.is_in_base_dir(path)+ # if not in_base and not files.is_in_dir(path, "/root"):+ # raise ValueError("Path is outside of allowed directory")# get file extension and infofile_ext = os.path.splitext(path)[1].lower()filename = os.path.basename(path)# list of allowed image extensions- image_extensions = [".jpg", ".jpeg", ".png", ".gif", ".bmp", ".webp", ".svg"]+ image_extensions = [".jpg", ".jpeg", ".png", ".gif", ".bmp", ".webp", ".svg", ".ico", ".svgz"]# # If metadata is requested, return file information# if metadata:diff --git a/webui/css/messages.css b/webui/css/messages.cssindex 0037eed48..b72c6bbfb 100644--- a/webui/css/messages.css+++ b/webui/css/messages.css@@ -263,9 +263,9 @@white-space: nowrap;}-.message-body code {+/* .message-body code {white-space: break-spaces;-}+} *//* Light mode code-exe styling moved to main terminal block above */