File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/main/java/com/compuware/jenkins/totaltest Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -323,6 +323,12 @@ else if (extension.compareTo(FILE_EXT_XAUNIT) == 0 ||
323
323
private Document getXaScenarioSuiteResultAsDocument (String xml ) throws Exception //NOSONAR
324
324
{
325
325
DocumentBuilderFactory dbf = DocumentBuilderFactory .newInstance ();
326
+ dbf .setFeature ("http://apache.org/xml/features/disallow-doctype-decl" , true );
327
+ dbf .setFeature ("http://xml.org/sax/features/external-general-entities" , false );
328
+ dbf .setFeature ("http://xml.org/sax/features/external-parameter-entities" , false );
329
+ dbf .setFeature ("http://apache.org/xml/features/nonvalidating/load-external-dtd" , false );
330
+ dbf .setXIncludeAware (false );
331
+ dbf .setExpandEntityReferences (false );
326
332
DocumentBuilder db = dbf .newDocumentBuilder ();
327
333
Reader r = new StringReader (xml );
328
334
return db .parse (new InputSource (r ));
You can’t perform that action at this time.
0 commit comments