mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-24 22:52:12 -03:00
fix(previews): temporarily bypass path validation to restore preview functionality
Temporary workaround for issues #772 and #774 where valid previews are rejected. Path validation is disabled until proper fix for preview root path handling is implemented.
This commit is contained in:
@@ -41,9 +41,10 @@ class PreviewHandler:
|
|||||||
raise web.HTTPBadRequest(text="Unable to resolve preview path") from exc
|
raise web.HTTPBadRequest(text="Unable to resolve preview path") from exc
|
||||||
|
|
||||||
resolved_str = str(resolved)
|
resolved_str = str(resolved)
|
||||||
if not self._config.is_preview_path_allowed(resolved_str):
|
# TODO: Temporarily disabled path validation due to issues #772 and #774
|
||||||
logger.debug("Rejected preview outside allowed roots: %s", resolved_str)
|
# Re-enable after fixing preview root path handling
|
||||||
raise web.HTTPForbidden(text="Preview path is not within an allowed directory")
|
# if not self._config.is_preview_path_allowed(resolved_str):
|
||||||
|
# raise web.HTTPForbidden(text="Preview path is not within an allowed directory")
|
||||||
|
|
||||||
if not resolved.is_file():
|
if not resolved.is_file():
|
||||||
logger.debug("Preview file not found at %s", resolved_str)
|
logger.debug("Preview file not found at %s", resolved_str)
|
||||||
|
|||||||
Reference in New Issue
Block a user