From 467c8b2549d9f84169e42ff2289bf941446d83ea Mon Sep 17 00:00:00 2001 From: iHeyTang Date: Tue, 12 Aug 2025 19:40:05 +0800 Subject: [PATCH] =?UTF-8?q?REFINE=20=E4=BF=AE=E6=AD=A3=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B9=E8=B7=AF=E5=BE=84=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=8C=E7=A1=AE=E4=BF=9D=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E5=9B=BE=E5=83=8F=E6=97=B6=E4=B8=8D=E5=9C=A8=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B9=E5=A4=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nodes/image_nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/image_nodes.py b/nodes/image_nodes.py index 047b9a5..ecbb0b3 100644 --- a/nodes/image_nodes.py +++ b/nodes/image_nodes.py @@ -177,7 +177,7 @@ class SaveImageWithOutput: subfolder = "" full_output_folder = os.path.join(output_dir, subfolder) - if os.path.commonpath((output_dir, os.path.abspath(full_output_folder))) != output_dir: + if os.path.commonpath((os.path.abspath(output_dir), os.path.abspath(full_output_folder))) != os.path.abspath(output_dir): print("Saving image outside the output folder is not allowed.") return {}