Skip to content

Commit

Permalink
Enable FEATURE_SECURE_PROCESSING
Browse files Browse the repository at this point in the history
  • Loading branch information
copierrj committed May 8, 2024
1 parent 55e6484 commit 5df301e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public static void transform(InputStream doc, URL xsltUrl, OutputStream out)
StreamSource source = new StreamSource(doc);
StreamSource xslt = new StreamSource(new File(xsltUrl.toURI()));
TransformerFactory fac = TransformerFactory.newInstance();
fac.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
Transformer t = fac.newTransformer(xslt);
Result result = new StreamResult(out);
t.transform(source, result);
Expand Down

0 comments on commit 5df301e

Please sign in to comment.