From 6824f2034c67224f72d80268e9ffafe3b2ada875 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 11:16:07 +0200 Subject: [PATCH 1/2] feat(editor): Sanitize HTML binary-data before rendering in the UI --- .../src/components/BinaryDataDisplayEmbed.vue | 23 +++++++++++-------- packages/editor-ui/src/components/RunData.vue | 6 +++-- .../editor-ui/src/components/RunDataHtml.vue | 12 ++++------ packages/workflow/src/Interfaces.ts | 2 +- packages/workflow/src/utils.ts | 1 + packages/workflow/test/utils.test.ts | 6 ++++- 6 files changed, 30 insertions(+), 20 deletions(-) diff --git a/packages/editor-ui/src/components/BinaryDataDisplayEmbed.vue b/packages/editor-ui/src/components/BinaryDataDisplayEmbed.vue index 98073dff096c5..2a36ca185a958 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') }} -