From 52004b753d534dde49bcc6627e3afa4e1449e40e Mon Sep 17 00:00:00 2001 From: AEmotionStudio <163354043+AEmotionStudio@users.noreply.github.com> Date: Tue, 3 Feb 2026 07:08:50 -0800 Subject: [PATCH] fix: add missing sanitization for workflow JSON in video node The workflow JSON sent to Discord was not being sanitized for webhook URLs and GitHub tokens. This fix adds the missing sanitize_json_for_export call. --- nodes/video_node.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nodes/video_node.py b/nodes/video_node.py index 845d2a2..f76bffc 100644 --- a/nodes/video_node.py +++ b/nodes/video_node.py @@ -963,6 +963,8 @@ class DiscordSendSaveVideo(BaseDiscordNode): if send_workflow_json: wflow = self.extract_workflow_from_metadata(original_prompt, original_extra_pnginfo) if wflow: + # Sanitize to remove webhook URLs and tokens + wflow = sanitize_json_for_export(wflow) json_filename = f"{uuid4()}.json" json_data = json.dumps(wflow, indent=2).encode('utf-8') files["workflow"] = (json_filename, json_data)