mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
encodes params correctly
This commit is contained in:
parent
6c266acced
commit
d6763af1ad
|
@ -1176,13 +1176,15 @@ export class AwsSes implements INodeType {
|
|||
const additionalFields = this.getNodeParameter('additionalFields', i);
|
||||
|
||||
const params = [
|
||||
`Template.TemplateName=${templateName}`,
|
||||
`Template.SubjectPart=${subjectPart}`,
|
||||
`Template.HtmlPart=<h1>${htmlPart}</h1>`,
|
||||
`Template.TemplateName=${encodeURIComponent(templateName)}`,
|
||||
`Template.SubjectPart=${encodeURIComponent(subjectPart)}`,
|
||||
`Template.HtmlPart=${encodeURIComponent(htmlPart)}`,
|
||||
];
|
||||
|
||||
if (additionalFields.textPart) {
|
||||
params.push(`Template.TextPart=${additionalFields.textPart}`);
|
||||
params.push(
|
||||
`Template.TextPart=${encodeURIComponent(additionalFields.textPart as string)}`,
|
||||
);
|
||||
}
|
||||
|
||||
responseData = await awsApiRequestSOAP.call(
|
||||
|
|
Loading…
Reference in a new issue