Skip to content

Commit 572baae

Browse files
committed
add missing escapes in xml generation
1 parent f241d4e commit 572baae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/models/LifecycleConfiguration.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,13 +1250,13 @@ export default class LifecycleConfiguration {
12501250
}
12511251
const tags = filter && filter.tags;
12521252
const Prefix = rulePrefix !== undefined ?
1253-
`<Prefix>${rulePrefix}</Prefix>` : '';
1253+
`<Prefix>${escapeForXml(rulePrefix)}</Prefix>` : '';
12541254
let tagXML = '';
12551255
if (tags) {
12561256
tagXML = tags.map(t => {
12571257
const { key, val } = t;
1258-
const Tag = `<Tag><Key>${key}</Key>` +
1259-
`<Value>${val}</Value></Tag>`;
1258+
const Tag = `<Tag><Key>${escapeForXml(key)}</Key>` +
1259+
`<Value>${escapeForXml(val)}</Value></Tag>`;
12601260
return Tag;
12611261
}).join('');
12621262
}

0 commit comments

Comments
 (0)