Skip to content

Commit

Permalink
[SECURITY-1900]
Browse files Browse the repository at this point in the history
  • Loading branch information
randycoulman committed Oct 31, 2020
1 parent 5ac6f61 commit 267bb70
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public StoreChangeLogSet parse(AbstractBuild build, File file) throws IOExceptio
blessingMap = new HashMap<String, StoreChangeLogEntry>();

SAXReader reader = new SAXReader();
reader.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
reader.setFeature("http://xml.org/sax/features/external-general-entities", false);
reader.setFeature("http://xml.org/sax/features/external-parameter-entities", false);

try {
Document document = reader.read(file);
Expand Down

0 comments on commit 267bb70

Please sign in to comment.