Skip to content

Commit

Permalink
fix: only accept uppercase CDATA to mark the start of CDATA
Browse files Browse the repository at this point in the history
  • Loading branch information
lddubeau committed Jul 6, 2018
1 parent c13b122 commit e86534d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/saxes.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ class SAXParser {
continue;

case S_OPEN_WAKA_BANG:
if ((this.openWakaBang + c).toUpperCase() === CDATA) {
if ((this.openWakaBang + c) === CDATA) {
this.emitNode("onopencdata");
this.state = S_CDATA;
this.openWakaBang = "";
Expand Down

0 comments on commit e86534d

Please sign in to comment.