File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/main/java/com/github/underscore/lodash Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1397,9 +1397,7 @@ private static org.w3c.dom.Document createDocument(final String xml)
13971397 factory .setNamespaceAware (true );
13981398 try {
13991399 factory .setFeature (javax .xml .XMLConstants .FEATURE_SECURE_PROCESSING , true );
1400- factory .setAttribute (javax .xml .XMLConstants .ACCESS_EXTERNAL_DTD , "" );
1401- factory .setAttribute (javax .xml .XMLConstants .ACCESS_EXTERNAL_SCHEMA , "" );
1402- } catch (javax .xml .parsers .ParserConfigurationException ignored ) {
1400+ } catch (Exception ignored ) {
14031401 // ignored
14041402 }
14051403 final javax .xml .parsers .DocumentBuilder builder = factory .newDocumentBuilder ();
@@ -1415,9 +1413,7 @@ private static org.w3c.dom.Document createDocument() {
14151413 factory .setNamespaceAware (true );
14161414 try {
14171415 factory .setFeature (javax .xml .XMLConstants .FEATURE_SECURE_PROCESSING , true );
1418- factory .setAttribute (javax .xml .XMLConstants .ACCESS_EXTERNAL_DTD , "" );
1419- factory .setAttribute (javax .xml .XMLConstants .ACCESS_EXTERNAL_SCHEMA , "" );
1420- } catch (javax .xml .parsers .ParserConfigurationException ignored ) {
1416+ } catch (Exception ignored ) {
14211417 // ignored
14221418 }
14231419 final javax .xml .parsers .DocumentBuilder builder = factory .newDocumentBuilder ();
You can’t perform that action at this time.
0 commit comments