Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/main/java/com/microfocus/bdd/JunitReportReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public class JunitReportReader implements Iterable<Element>{

public JunitReportReader(InputStream inputStream, String testcaseElementName) throws XMLStreamException {
XMLInputFactory xmlInputFactory = XMLInputFactory.newInstance();
xmlInputFactory.setProperty(XMLInputFactory.IS_SUPPORTING_EXTERNAL_ENTITIES, false);
xmlInputFactory.setProperty(XMLInputFactory.SUPPORT_DTD, false);
reader = xmlInputFactory.createXMLEventReader(inputStream, StandardCharsets.UTF_8.name());
this.testcaseElementName = testcaseElementName;
iterator = new ElementIterator();
Expand Down