Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi-asprino committed Sep 15, 2024
1 parent 6de3a47 commit 4fb16ba
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public void process(Reader reader, String mimeType, String baseUri) throws Parse
}
try {
sink.setBaseUri(baseUri);
xmlReader.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
xmlReader.parse(new InputSource(reader));
} catch (SAXException e) {
ParseException wrappedException = sink.processException(e);
Expand Down

0 comments on commit 4fb16ba

Please sign in to comment.