fix: use safe_open_image for base64 path consistency
This commit is contained in:
@@ -196,7 +196,7 @@ class ShellAgentPluginInputImage:
|
|||||||
if encrypt:
|
if encrypt:
|
||||||
decoded_image = xor_decrypt_bytes(decoded_image, ENCRYPTION_KEY)
|
decoded_image = xor_decrypt_bytes(decoded_image, ENCRYPTION_KEY)
|
||||||
|
|
||||||
image = Image.open(BytesIO(decoded_image))
|
image = safe_open_image(decoded_image)
|
||||||
else:
|
else:
|
||||||
if not os.path.isfile(image_path): # abs path
|
if not os.path.isfile(image_path): # abs path
|
||||||
# local path
|
# local path
|
||||||
|
|||||||
Reference in New Issue
Block a user