From f0954b94e164f0ff3e809849731137cf479670a4 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 3 Apr 2023 11:30:22 +0100 Subject: [PATCH] fix(AWS SNS Node): Fix an issue with messages failing to send if they contain certain characters (#5807) --- packages/nodes-base/nodes/Aws/AwsSns.node.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nodes-base/nodes/Aws/AwsSns.node.ts b/packages/nodes-base/nodes/Aws/AwsSns.node.ts index 3cd4d33f2e..cde82e341a 100644 --- a/packages/nodes-base/nodes/Aws/AwsSns.node.ts +++ b/packages/nodes-base/nodes/Aws/AwsSns.node.ts @@ -302,8 +302,8 @@ export class AwsSns implements INodeType { const params = [ 'TopicArn=' + topic, - 'Subject=' + (this.getNodeParameter('subject', i) as string), - 'Message=' + (this.getNodeParameter('message', i) as string), + 'Subject=' + encodeURIComponent(this.getNodeParameter('subject', i) as string), + 'Message=' + encodeURIComponent(this.getNodeParameter('message', i) as string), ]; const responseData = await awsApiRequestSOAP.call(