Skip to content

Commit

Permalink
BZ1150634: switch off external-parameter-entity processing in XML parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Lindop committed Jan 5, 2015
1 parent 2d2074a commit 8a3862b
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -19,6 +19,7 @@ public JBPMBpmn2ResourceImpl(URI uri) {
// Switch off DTD external entity processing
Map parserFeatures = new HashMap();
parserFeatures.put("http://xml.org/sax/features/external-general-entities", false);
parserFeatures.put("http://xml.org/sax/features/external-parameter-entities", false);
this.getDefaultLoadOptions().put(XMLResource.OPTION_PARSER_FEATURES, parserFeatures);

}
Expand Down

0 comments on commit 8a3862b

Please sign in to comment.