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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user