Skip to content

Commit 61cb666

Browse files
committed
restrict more properties to be unsafe
1 parent 41abd66 commit 61cb666

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/xmlparser/OrderedObjParser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,8 @@ const parseXml = function (xmlData) {
422422
if (this.options.strictReservedNames &&
423423
(tagName === this.options.commentPropName
424424
|| tagName === this.options.cdataPropName
425+
|| tagName === this.options.textNodeName
426+
|| tagName === this.options.attributesGroupName
425427
)) {
426428
throw new Error(`Invalid tag name: ${tagName}`);
427429
}

0 commit comments

Comments
 (0)