Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some security issues #1397

Merged
merged 2 commits into from Jul 3, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Next
  • Loading branch information
sbrunner committed Jul 2, 2020
commit e1d0527d13db06b2b62ca7d6afb9e97dacd67a0e
Expand Up @@ -94,6 +94,7 @@ private Optional<Style> tryLoadSLD(
// by setting a custom error handler.
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
dbf.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
DocumentBuilder db = dbf.newDocumentBuilder();
db.setErrorHandler(new ErrorHandler());
db.parse(new ByteArrayInputStream(bytes));
Expand Down