File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/test/java/org/cyclonedx Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -837,6 +837,10 @@ public void testComponentAuthorsSerializationAndDeserialization(String xmlFilePa
837837 // Verify the xml content
838838 DocumentBuilderFactory dbf = DocumentBuilderFactory .newInstance ();
839839 dbf .setNamespaceAware (true );
840+ dbf .setFeature ("http://apache.org/xml/features/disallow-doctype-decl" , true );
841+ dbf .setFeature ("http://xml.org/sax/features/external-general-entities" , false );
842+ dbf .setFeature ("http://xml.org/sax/features/external-parameter-entities" , false );
843+ dbf .setFeature ("http://apache.org/xml/features/nonvalidating/load-external-dtd" , false );
840844 Document doc = dbf .newDocumentBuilder ()
841845 .parse (new java .io .ByteArrayInputStream (xmlString .getBytes ()));
842846
You can’t perform that action at this time.
0 commit comments