Skip to content

Commit

Permalink
Fix #190
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Apr 15, 2016
1 parent c2ccf8d commit f0f19a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Project: jackson-dataformat-xml
= Releases
------------------------------------------------------------------------

2.7.4 (not yet released)

#190: Ensure that defaults for `XMLInputFactory` have expansion of external
parsed general entities disabled

2.7.3 (16-Mar-2016)

No changes since 2.7.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ protected XmlFactory(ObjectCodec oc, int xpFeatures, int xgFeatures,
_cfgNameForTextElement = nameForTextElem;
if (xmlIn == null) {
xmlIn = XMLInputFactory.newInstance();
// as per [dataformat-xml#190], disable external entity expansion by default
xmlIn.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, Boolean.FALSE);
}
if (xmlOut == null) {
xmlOut = XMLOutputFactory.newInstance();
Expand Down

0 comments on commit f0f19a4

Please sign in to comment.