This repository has been archived by the owner on Jun 3, 2020. It is now read-only.
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
1791164 - disable external entity parsing
- Loading branch information
1 parent
60950bc
commit 74e28ec
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| diff '--exclude=CVS' '--exclude=.svn' -ur ../xmlrpc-orig/source/redstone/xmlrpc/XmlRpcParser.java ../xmlrpc/source/redstone/xmlrpc/XmlRpcParser.java | ||
| --- source/redstone/xmlrpc/XmlRpcParser.java 2020-01-16 14:18:28.294284905 +0100 | ||
| +++ source/redstone/xmlrpc/XmlRpcParser.java 2020-01-16 14:21:57.985203925 +0100 | ||
| @@ -135,6 +135,7 @@ | ||
| { | ||
| reader = XMLReaderFactory.createXMLReader(); | ||
| reader.setEntityResolver(new DummyEntityResolver()); | ||
| + reader.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true); | ||
| } | ||
| catch ( SAXException e ) | ||
| { |