Skip to content

Commit 6764f81

Browse files
committed
Update Xml.java
1 parent 5d4d91f commit 6764f81

File tree

1 file changed

+1
-0
lines changed
  • src/main/java/com/github/underscore/lodash

1 file changed

+1
-0
lines changed

src/main/java/com/github/underscore/lodash/Xml.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,6 +1366,7 @@ private static org.w3c.dom.Document createDocument() {
13661366
final javax.xml.parsers.DocumentBuilderFactory factory =
13671367
javax.xml.parsers.DocumentBuilderFactory.newInstance();
13681368
factory.setNamespaceAware(true);
1369+
factory.setFeature(javax.xml.XMLConstants.FEATURE_SECURE_PROCESSING, true);
13691370
final javax.xml.parsers.DocumentBuilder builder = factory.newDocumentBuilder();
13701371
return builder.newDocument();
13711372
} catch (javax.xml.parsers.ParserConfigurationException ex) {

0 commit comments

Comments
 (0)