mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-04-20 15:32:32 +08:00
PurePosixPath doesn't understand Windows drive letters, so paths like C:/Windows/secret.png or C:secret.png would pass validation but escape the output directory when joined via os.path.join on Windows. Add PureWindowsPath check to detect drive-qualified paths on all platforms. Added tests for Windows drive absolute, relative, and backslash path variants. |
||
|---|---|---|
| .. | ||
| test_cache_control.py | ||
| test_view_endpoint.py | ||