From 2b075bfc2da02afc43c1ebfee565b849c87aee49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Wed, 11 Oct 2023 12:09:19 +0200 Subject: [PATCH] fix(editor): Sanitize HTML binary-data before rendering in the UI (#7400) --- .../src/components/BinaryDataDisplayEmbed.vue | 23 +++++++++++-------- packages/editor-ui/src/components/RunData.vue | 6 +++-- .../editor-ui/src/components/RunDataHtml.vue | 12 ++++------ .../test/SpreadsheetFile.test.ts | 2 +- packages/workflow/src/Interfaces.ts | 2 +- packages/workflow/src/utils.ts | 1 + packages/workflow/test/utils.test.ts | 6 ++++- 7 files changed, 31 insertions(+), 21 deletions(-) diff --git a/packages/editor-ui/src/components/BinaryDataDisplayEmbed.vue b/packages/editor-ui/src/components/BinaryDataDisplayEmbed.vue index 98073dff09..2a36ca185a 100644 --- a/packages/editor-ui/src/components/BinaryDataDisplayEmbed.vue +++ b/packages/editor-ui/src/components/BinaryDataDisplayEmbed.vue @@ -7,16 +7,17 @@ {{ $locale.baseText('binaryDataDisplay.yourBrowserDoesNotSupport') }} -