Skip to content

Commit

Permalink
CASC-165
Browse files Browse the repository at this point in the history
disable DTD reading.
  • Loading branch information
battags committed Oct 31, 2011
1 parent 80693a3 commit a19c27f
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -53,7 +53,9 @@ public final class XmlUtils {
*/
public static XMLReader getXmlReader() {
try {
return XMLReaderFactory.createXMLReader();
final XMLReader reader = XMLReaderFactory.createXMLReader();
reader.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
return reader;
} catch (final SAXException e) {
throw new RuntimeException("Unable to create XMLReader", e);
}
Expand Down

0 comments on commit a19c27f

Please sign in to comment.