From 772e4a32dea2e0562bc2b6fbf3faded236f3a9d6 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Wed, 23 Aug 2023 01:26:51 +0300 Subject: [PATCH] pkp/pkp-lib#9246 Trim email addresses in CC/BCC to avoid invalidation (#282) --- src/components/Container/DecisionPage.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/Container/DecisionPage.vue b/src/components/Container/DecisionPage.vue index 6a99049fe..64bfb334d 100644 --- a/src/components/Container/DecisionPage.vue +++ b/src/components/Container/DecisionPage.vue @@ -282,8 +282,16 @@ export default { return { ...stepData, attachments: step.attachments, - bcc: bcc ? bcc.split(',') : [], - cc: cc ? cc.split(',') : [], + bcc: bcc + ? bcc.split(',').map((item) => { + return item.trim(); + }) + : [], + cc: cc + ? cc.split(',').map((item) => { + return item.trim(); + }) + : [], locale: step.locale, recipients: step.canChangeRecipients ? step.recipients : [], subject: step.subject,