File tree Expand file tree Collapse file tree
sqldev/src/main/java/org/utplsql/sqldev/dal Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626import java .util .List ;
2727import java .util .logging .Logger ;
2828
29+ import javax .xml .XMLConstants ;
2930import javax .xml .parsers .DocumentBuilder ;
3031import javax .xml .parsers .DocumentBuilderFactory ;
3132import javax .xml .parsers .ParserConfigurationException ;
@@ -145,7 +146,9 @@ public Void doInCallableStatement(final CallableStatement cs) throws SQLExceptio
145146 private RealtimeReporterEvent convert (final String itemType , final String text ) {
146147 logger .fine (() -> "\n ---- " + itemType + " ----\n " + text );
147148 try {
148- final DocumentBuilder docBuilder = DocumentBuilderFactory .newInstance ().newDocumentBuilder ();
149+ final DocumentBuilderFactory factory = DocumentBuilderFactory .newInstance ();
150+ factory .setFeature (XMLConstants .FEATURE_SECURE_PROCESSING , Boolean .TRUE );
151+ final DocumentBuilder docBuilder = factory .newDocumentBuilder ();
149152 final Document doc = docBuilder .parse (new InputSource (new StringReader (text )));
150153 RealtimeReporterEvent event = null ;
151154 if ("pre-run" .equals (itemType )) {
You can’t perform that action at this time.
0 commit comments