Skip to content

Commit

Permalink
fix: security bug
Browse files Browse the repository at this point in the history
  • Loading branch information
amitguptagwl committed Jun 6, 2023
1 parent abfee16 commit 0955739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xmlparser/DocTypeReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function isNotation(xmlData, i){

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

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

0 comments on commit 0955739

Please sign in to comment.