File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
exist-core/src/main/java/org/exist/xquery/functions/fn/transform Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 47
47
import org .w3c .dom .Node ;
48
48
49
49
import javax .annotation .Nullable ;
50
+ import javax .xml .XMLConstants ;
50
51
import javax .xml .stream .XMLEventReader ;
51
52
import javax .xml .stream .XMLInputFactory ;
52
53
import javax .xml .stream .XMLStreamConstants ;
@@ -589,6 +590,9 @@ private float domExtractXsltVersion(final Source xsltStylesheet) throws XPathExc
589
590
private float staxExtractXsltVersion (final Source xsltStylesheet ) throws XPathException {
590
591
try {
591
592
final XMLInputFactory factory = XMLInputFactory .newInstance ();
593
+ // Sonartype checker needs this https://rules.sonarsource.com/java/RSPEC-2755
594
+ factory .setProperty (XMLInputFactory .SUPPORT_DTD , false );
595
+
592
596
final XMLEventReader eventReader =
593
597
factory .createXMLEventReader (xsltStylesheet );
594
598
You can’t perform that action at this time.
0 commit comments