File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
org.eclipse.jgit/src/org/eclipse/jgit/transport Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -760,6 +760,15 @@ void list() throws IOException {
760
760
SAXParserFactory saxParserFactory = SAXParserFactory
761
761
.newInstance ();
762
762
saxParserFactory .setNamespaceAware (true );
763
+ saxParserFactory .setFeature (
764
+ "http://xml.org/sax/features/external-general-entities" , //$NON-NLS-1$
765
+ false );
766
+ saxParserFactory .setFeature (
767
+ "http://xml.org/sax/features/external-parameter-entities" , //$NON-NLS-1$
768
+ false );
769
+ saxParserFactory .setFeature (
770
+ "http://apache.org/xml/features/disallow-doctype-decl" , //$NON-NLS-1$
771
+ true );
763
772
xr = saxParserFactory .newSAXParser ().getXMLReader ();
764
773
} catch (SAXException | ParserConfigurationException e ) {
765
774
throw new IOException (
You can’t perform that action at this time.
0 commit comments