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
10 changes: 3 additions & 7 deletions src/main/java/org/frankframework/flow/project/Project.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ public void setConfigurationXml(String filepath, String xmlContent) {
}
}

public ProjectSettings getProjectSettings() {
return this.projectSettings;
}

public boolean isFilterEnabled(FilterType type) {
public boolean isFilterEnabled(FilterType type) {
return projectSettings.isEnabled(type);
}

Expand Down Expand Up @@ -92,15 +88,15 @@ public boolean updateAdapter(String configurationName, String adapterName, Strin
}

private Document parseXml(String xmlContent) throws Exception {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilderFactory factory = XmlSecurityUtils.createSecureDocumentBuilderFactory();
factory.setIgnoringComments(true);
factory.setNamespaceAware(true);
DocumentBuilder builder = factory.newDocumentBuilder();
return builder.parse(new ByteArrayInputStream(xmlContent.getBytes()));
}

private Node parseNewAdapter(Document configDoc, String newAdapterXml) throws Exception {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilderFactory factory = XmlSecurityUtils.createSecureDocumentBuilderFactory();
factory.setIgnoringComments(true);
factory.setNamespaceAware(true);
DocumentBuilder builder = factory.newDocumentBuilder();
Expand Down
Loading