Commit aac8cf9f authored by Matt Tucker's avatar Matt Tucker Committed by matt

Disabled external DTD resolution (JM-164).


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@960 b35dd754-fafc-0310-a699-88a17e54d16e
parent bcd1ad51
......@@ -112,7 +112,11 @@ public class PluginServlet extends HttpServlet {
// lives in plugins/[pluginName]/web/web.xml
String pluginName = webXML.getParentFile().getParentFile().getName();
try {
SAXReader saxReader = new SAXReader();
// Make the reader non-validating so that it doesn't try to resolve external
// DTD's. Trying to resolve external DTD's can break on some firewall configurations.
SAXReader saxReader = new SAXReader(false);
saxReader.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd",
false);
Document doc = saxReader.read(webXML);
// Find all <servlet> entries to discover name to class mapping.
List classes = doc.selectNodes("//servlet");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment