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

Don't validate DTD on plugin unload (JM-164).


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1062 b35dd754-fafc-0310-a699-88a17e54d16e
parent 2a8777d3
...@@ -167,7 +167,9 @@ public class PluginServlet extends HttpServlet { ...@@ -167,7 +167,9 @@ public class PluginServlet extends HttpServlet {
// lives in plugins/[pluginName]/web/web.xml // lives in plugins/[pluginName]/web/web.xml
String pluginName = webXML.getParentFile().getParentFile().getName(); String pluginName = webXML.getParentFile().getParentFile().getName();
try { try {
SAXReader saxReader = new SAXReader(); SAXReader saxReader = new SAXReader(false);
saxReader.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd",
false);
Document doc = saxReader.read(webXML); Document doc = saxReader.read(webXML);
// Find all <servelt-mapping> entries to discover name to URL mapping. // Find all <servelt-mapping> entries to discover name to URL mapping.
List names = doc.selectNodes("//servlet-mapping"); List names = doc.selectNodes("//servlet-mapping");
......
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