Commit 7a3f9336 authored by Bill Lynch's avatar Bill Lynch Committed by bill

Fixed busted filename name


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@475 b35dd754-fafc-0310-a699-88a17e54d16e
parent 0685be33
...@@ -63,6 +63,7 @@ public class PluginServlet extends HttpServlet { ...@@ -63,6 +63,7 @@ public class PluginServlet extends HttpServlet {
throws ServletException, IOException throws ServletException, IOException
{ {
String pathInfo = request.getPathInfo(); String pathInfo = request.getPathInfo();
if (pathInfo == null) { if (pathInfo == null) {
response.setStatus(HttpServletResponse.SC_NOT_FOUND); response.setStatus(HttpServletResponse.SC_NOT_FOUND);
return; return;
...@@ -101,7 +102,7 @@ public class PluginServlet extends HttpServlet { ...@@ -101,7 +102,7 @@ public class PluginServlet extends HttpServlet {
} }
// Find the name of the plugin directory given that the webXML file // Find the name of the plugin directory given that the webXML file
// lives in plugins/[pluginName]/web/web.xml // lives in plugins/[pluginName]/web/web.xml
String pluginName = webXML.getParentFile().getParent(); String pluginName = webXML.getParentFile().getParentFile().getName();
try { try {
SAXReader saxReader = new SAXReader(); SAXReader saxReader = new SAXReader();
Document doc = saxReader.read(webXML); Document doc = saxReader.read(webXML);
......
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