We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d21e71b commit 7c43fdaCopy full SHA for 7c43fda
src/main/java/org/apache/ibatis/parsing/XPathParser.java
@@ -231,6 +231,9 @@ private Document createDocument(InputSource inputSource) {
231
try {
232
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
233
factory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
234
+ factory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
235
+ factory.setFeature("http://xml.org/sax/features/external-general-entities", false);
236
+ factory.setFeature("http://xml.org/sax/features/external-parameter-entities", false);
237
factory.setValidating(validation);
238
239
factory.setNamespaceAware(false);
0 commit comments