Skip to content
  • Sponsor NaturalIntelligence/fast-xml-parser

  • Notifications You must be signed in to change notification settings
  • Fork 318

Commit 0955739

Browse files
committedJun 6, 2023
fix: security bug
1 parent abfee16 commit 0955739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/xmlparser/DocTypeReader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ function isNotation(xmlData, i){
142142

143143
//an entity name should not contains special characters that may be used in regex
144144
//Eg !?\\\/[]$%{}^&*()<>
145-
const specialChar = "!?\\\/[]$%{}^&*()<>";
145+
const specialChar = "!?\\\/[]$%{}^&*()<>|+";
146146

147147
function validateEntityName(name){
148148
for (let i = 0; i < specialChar.length; i++) {

0 commit comments

Comments
 (0)