We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f241d4e commit 572baaeCopy full SHA for 572baae
lib/models/LifecycleConfiguration.ts
@@ -1250,13 +1250,13 @@ export default class LifecycleConfiguration {
1250
}
1251
const tags = filter && filter.tags;
1252
const Prefix = rulePrefix !== undefined ?
1253
- `<Prefix>${rulePrefix}</Prefix>` : '';
+ `<Prefix>${escapeForXml(rulePrefix)}</Prefix>` : '';
1254
let tagXML = '';
1255
if (tags) {
1256
tagXML = tags.map(t => {
1257
const { key, val } = t;
1258
- const Tag = `<Tag><Key>${key}</Key>` +
1259
- `<Value>${val}</Value></Tag>`;
+ const Tag = `<Tag><Key>${escapeForXml(key)}</Key>` +
+ `<Value>${escapeForXml(val)}</Value></Tag>`;
1260
return Tag;
1261
}).join('');
1262
0 commit comments